- 1

Int a=15 int b= cout<<a_b<<endl;

help pls

25th Jan 2018, 5:18 PM
Gaby Hotomanul
Gaby Hotomanul - avatar
7 Respostas
+ 6
Interesting code. What is a_b? Missing ; after 15. I assume Int is due to autocorrect and was coded as int. Please link actual code to question. It is hard to help this way.
25th Jan 2018, 5:26 PM
John Wells
John Wells - avatar
+ 2
Since I used all of the shortcuts in C++, I wouldn't have known that. You got it backwards b=a
25th Jan 2018, 5:48 PM
John Wells
John Wells - avatar
+ 2
thank you
25th Jan 2018, 5:50 PM
Gaby Hotomanul
Gaby Hotomanul - avatar
+ 1
@John Wells This is actually a question from the first chapter in the C++ course from Sololearn, not really a code. @Gaby You have to assign the value of a to b, so int b = a; And if you want to print their sum, as stated in the exercise, cout << a + b << endl;
25th Jan 2018, 5:42 PM
Shadow
Shadow - avatar
0
2nd May 2020, 5:39 AM
Babji shiekh
Babji shiekh  - avatar
0
how to do thí int a = 15; int b = ; cout << a b << endl;
22nd Jan 2021, 2:19 AM
Kiều Sơn - 7A2
0
int a = 15; int b = ; cout << a + b << endl; How do I complete the solution?
7th Jul 2021, 9:07 AM
Husam ALiraqi
Husam ALiraqi - avatar