+ 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; }
4 Respuestas
+ 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;
}
+ 1
Someone*
Bad*
I am spanish AND the corrector put spanish worlds
+ 1
Thanks
0
you were missing a lot of semicolons and made many syntax errors.
I wrote the fix bellow every error.