|
|
back to boardMY AC PROGRAM C++!!! Posted by yaho0o0 10 Apr 2009 14:57 #include <cstdlib> #include <ctime> #include <iostream> using namespace std; int main() { int i=1; srand((unsigned)time(0)); char random_integer; while(i<=1000000) { random_integer = (rand()%'z')+1; if(random_integer>='a'&& random_integer<='z') { cout << random_integer; i++; }} cout<<endl; return 0; } Edited by author 10.04.2009 16:54 Re: MY AC PROGRAM C++!!! Posted by Mronoal 11 Sep 2011 00:50 Hello,friends I tested your program is OK. And it's so cool. But,I don't why? please.help me ! thanks ! Edited by author 11.09.2011 00:50 Edited by author 11.09.2011 00:51 Re: MY AC PROGRAM C++!!! It'll be interesting to see the checker for this problem. |
|
|