0

Hello, Please I tried printing a variable value along with a string with cout. Cout<< var "Is the answer"; help please

2nd Dec 2016, 3:00 PM
Nkenfack Tebonfack Mathurin
Nkenfack Tebonfack Mathurin - avatar
4 Réponses
+ 3
cout << var << " is the answer.";
2nd Dec 2016, 4:07 PM
Nedim Kanat
Nedim Kanat - avatar
+ 2
cout << var << " is the answer" << endl;
2nd Dec 2016, 3:32 PM
Max_N
Max_N - avatar
0
u do not have to write << end .it is like \n. for next line.
2nd Dec 2016, 4:00 PM
Ozan Karataş
Ozan Karataş - avatar
- 1
int main(){ cout<< "Hallo"; } is it like that ?
2nd Dec 2016, 3:07 PM
Ozan Karataş
Ozan Karataş - avatar