Home > Back-end >  Why has the newline character
Why has the newline character

Time:12-13

; The # include "stdafx. H
"# include "string. H"

Int _tmain (int arg c, _TCHAR * argv [])
{char a [100] [80], c;
Int n, I, j;
The scanf (" % d ", & amp; N);
for(i=0; iGets (a [I]);
C=0;
for(i=1; iIf (STRCMP (a [c], a [I]) & gt; 0)
C=I;
Min is: printf (" % s ", a [c]);
return 0;
} there behind the scanf in % d didn't add a newline, result I a for loop can only enter n - 1 data, can input n, it can't imagine why
  • Related