+ 1

Why my code not showing output.

Pls help to fix the bug https://code.sololearn.com/ck9idI98PJ6d/?ref=app

15th Nov 2020, 6:10 PM
Om Sri
4 Réponses
+ 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
15th Nov 2020, 6:45 PM
Mensch
Mensch - avatar
+ 2
Ohh wwow Thankyou sooo much
15th Nov 2020, 6:46 PM
Om Sri
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.
15th Nov 2020, 6:32 PM
Mensch
Mensch - avatar
0
My code is not showing output when I run it
16th Jan 2022, 9:39 AM
adenle olaitan