|
|
вернуться в форумhelp for wa 9 Послано fredAC 11 сен 2009 14:55 wrong on the following code /////////////////////// if(pos >maxline -1) pos = 0; a[pos++] = char; //////////////////// when test case: aaaaaaaaaaa.......a(total 80 a)<b b should in pos 1 instead of erasing pos 80
Re: help for wa 9 Yeah, my program's output is exactly "baaaaaaaaaa....a". But I still got WA#9. Re: help for wa 9 if(pos >maxline -1) pos = 0; a[pos++] = char; if (pos>maxline-1) pos=0; // may be this help for you Edited by author 12.11.2012 19:43 |
|
|