0
Guys, how do I split this code in C++?
Sorry of my English... This code: #include <iostream> using namespace std; int main() { //ваш код int x=12; int y=50-12; cout <<y<<endl; int a=231; int b=231-200; int c=50-31; cout<<c<<endl; return 0; }
4 Respuestas
+ 2
Do you want something like this?
Code 1:
#include <iostream>
using namespace std;
int main() {
//ваш код
int x=12;
int y=50-12;
cout <<y<<endl;
return 0;
}
Code 2:
#include <iostream>
using namespace std;
int main() {
int a=231;
int b=231-200;
int c=50-31;
cout<<c<<endl;
return 0;
}
0
Ok, I'll try it, thanks )
0
It gives an error that code doesn't name of tipe
Something like this
./Playground/file0.cpp:1:1: error: 'Code'
does not name a tipe
0
I'm sorry l made a typo when I writing this... When I started to write this code in which I need help I wrote 'Code:' and start to writing my code with problem without any indentations and you may think that "Code:" is part of my problem code... I'm really sorry 😔