Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
请教一个C语言入门问题nn[0]=0; for(i=1;i<=nn;i++) { scanf("%s",s+n[i-1]); n[i]=strlen(s+n[i-1]); n[i]+=n[i-1]; s[n[i]++]='a'-i; } nn[0]=0; for(i=1;i<=nn;i++) { scanf("%s",s+n[i-1]); n[i]=strlen(s); s[n[i]++]='a'-1; } 这两种写法有什么区别?? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator