+ 1

I am having trouble with my code can someone help me

int a+b ('a') =+1; +('b')=+2; string people;,obj kids cin a+b= cout<< tatol<<endl i know its crude but cant get it to work

17th Aug 2017, 2:33 AM
james
3 Answers
+ 5
int a,b,total; a=1; b=2; string people; cin>>a>>b; total=a+b; cout<<total; Is that what you wanted to do ?
17th Aug 2017, 4:41 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 3
hey did you #include <iostream> #include <string>
17th Aug 2017, 4:53 AM
Raz
Raz - avatar
+ 2
yes thank you u all
17th Aug 2017, 10:33 AM
james