+ 1

Can Simeone say me what Is vas un this c++ code ?

#include <iostream> using namespace std; int main() { bool win = true int a = 1 int b = 2 int c = 3 int f = 4 int e = 5 int d = 6 cout "enter a character from a to f"; int num num = cin if (num = f); cout "u die"; win = false else cout "you win" win = true return 0; }

24th Feb 2020, 3:07 PM
annonymus_me gd
annonymus_me gd - avatar
4 odpowiedzi
+ 1
#include <iostream> using namespace std; int main() { bool win = true; no semicolons int a = 1; int b = 2; int c = 3; int f = 4; int e = 5; int d = 6; cout "enter a character from a to f"; cout << "xxxx" ; int num ; sem num = cin cin >> num ; if (num = f); if(num == f) { cout "u die"; cout << "xxxx" ; win = false; } else{ cout "you win" cout << "xxxxxx" ; win = true ; } return 0; }
24th Feb 2020, 3:29 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
Someone* Bad* I am spanish AND the corrector put spanish worlds
24th Feb 2020, 3:17 PM
annonymus_me gd
annonymus_me gd - avatar
+ 1
Thanks
24th Feb 2020, 3:30 PM
annonymus_me gd
annonymus_me gd - avatar
0
you were missing a lot of semicolons and made many syntax errors. I wrote the fix bellow every error.
24th Feb 2020, 3:30 PM
Bahhaⵣ
Bahhaⵣ - avatar