0
how to input / output & ( comments ) in cpp ?
In the comments code practice (very new to this) I canât seem to get the code to run, it keeps telling me there is not input but itâs seems to be Iâve set it out just like the example?! But when you run the example, it doesnât ignore the lineâŠIâm confusedâŠsorry! Please help!!!
4 Answers
+ 4
Provide more details please. Be specific. We don't know what language you're referring to, and we don't have the context we need to help you.
+ 2
Holly Andrews looks like you are in the cpp course so
input begins with cin >> x;
/* input */
int x;
cin >> x;
/* output */
cout << x << endl;
output is cout << x << endl;
As far as comments these are solely for the coder / program information / not seen by the the enduser of the code.