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; }

11th Sep 2021, 8:35 PM
Иван
4 Respostas
+ 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; }
11th Sep 2021, 10:08 PM
Chris
0
Ok, I'll try it, thanks )
12th Sep 2021, 5:21 AM
Иван
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
12th Sep 2021, 5:41 AM
Иван
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 😔
12th Sep 2021, 5:53 AM
Иван