0

what does it means?

int a; int b; int sum; cout << "enter a number \n"; cin >> a; cout << "enter another number \n"; cin >> b; sum=a+b; cout << "sum is:" << sum << endl; WHY"<< endl"???

1st Apr 2017, 2:23 PM
高緯勛
高緯勛 - avatar
2 ответов
+ 11
endl is used similarly to \n except that it clears the output buffer whereas \n does not.
1st Apr 2017, 2:44 PM
Hatsy Rei
Hatsy Rei - avatar
0
what is an output buffer
4th Apr 2017, 3:53 AM
Will Shep
Will Shep - avatar