Shao Miller
6/2/2011 4:05:00 AM
On 6/1/2011 2:44 PM, Federico wrote:
> Hello. I'd like to understand the following piece of source:
>
> .........
>
> fscanf ( Infile, "%3s %6s", string1, string2);
> //fscanf(Infile,"%5s %5s",string3,string4);
>
> ^^--------- I don't know the meaning of this double slash.
You might also enjoy:
fscanf(Infile, "%3s %6s", string1, string2);
#if 0
fscanf(Infile, "%5s %5s", string3, string4);
#endif
or even:
#define TEST_MODE 0
...
fscanf(Infile, "%3s %6s", string1, string2);
#if TEST_MODE
fscanf(Infile, "%5s %5s", string3, string4);
#endif
or maybe:
#define TEST_MODE 0
...
#if !TEST_MODE
fscanf(Infile, "%3s %6s", string1, string2);
#else
fscanf(Infile, "%5s %5s", string3, string4);
#endif