i saw this think in which
if i get a wrong input in a matrix like
-1 rows or -2 col s
than its just re asks the question
??
This is a discussion on how to do this trick.. within the C Programming forums, part of the General Programming Boards category; i saw this think in which if i get a wrong input in a matrix like -1 rows or -2 ...
i saw this think in which
if i get a wrong input in a matrix like
-1 rows or -2 col s
than its just re asks the question
??
1. Ask the question.
2. If you don't like the answer, ask again.
3. Repeat step 2 until done.
>> how to do this trick..
Why don't the post the code you have so far? Also, you'd get much better responses if you learned how to ask more intelligent questions...
Code:int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000 <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000 )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 0;}
...Learn how to use flowcharts and pseudo code.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
I think this earns the award for the most vague question of the day:O.
★ Inferno provides Programming Tutorials in a variety of languages. Join our Programming Forums. ★
Assuming you want to ensure variables are greater than one (need at least one row, I assume)...Code:int num_rows; do { printf( "Enter number of rows: " ); scanf( "%d", &num_rows ); } while ( num_rows<1 );