这两句有什么用
int getline( char s[] int lim){
int c,i;
i=0;
while(--lim>0&&(c=getchar())!=EOF&&c!='\n')
s[i++]=c;
if(c=='n\')
s[i++]='\0';
return i;
}
程序中这两句有什么用呢当程序检测到换行符时所有字符都已经输出了吧
if(c=='n\')
s[i++]='\0';
2005-03-09 18:00
2005-03-09 18:07
2005-03-09 19:19
2005-03-09 19:31
2005-03-10 09:21
2005-03-10 13:36








2005-03-10 16:52
2005-03-11 00:18