+ 1
Why my code not showing output.
Pls help to fix the bug https://code.sololearn.com/ck9idI98PJ6d/?ref=app
4 Antworten
+ 4
My fix for the infinite loop.
I think u want to place 10 x's in random spots in tab.
The following should work without the do while loop
for (int i = 0; i < 10; i++) {
int x = rand() % 10;
int y = rand() % 10;
tab[x][y] = 'x';
}
https://code.sololearn.com/cubBs0XI9AG3/?ref=app
+ 2
Ohh wwow Thankyou sooo much
0
Place a space between #include en <header> at lines 1 and 2 to fix compile time error. After that at line 22 the code gets stuck in an infinite loop.
0
My code is not showing output when I run it