Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How does C language input a set of numbers with an array and then output them as they are?
How does C language input a set of numbers with an array and then output them as they are?
& amplt; pre name="code"class="cpp"&。 gt; # Contains &; stdio.h & ampgt;

int main()

{

int N;

scanf("%d ",& ampn);

while(N -)

{

char a[ 100];

while(scanf("%s ",a)! =EOF)

printf("%s\n ",a);

}

Returns 0;

}

Extended data:

Including usage:

#include command is a preprocessing command, which can insert other source code content into the specified location; Can identify a program code that will only be compiled under certain conditions; You can define a macro with similar identifier function, and at compile time, the preprocessor will replace this macro with other text.

Insert the contents of the header file

The #include command tells the preprocessor to insert the contents of the specified header file into the corresponding position of the preprocessor command. There are two ways to specify a header file to insert:

1 、# include & amplt; File >

2.# contains "file name"