0
Sorry for this silly question but I am a newbie in c ++, how can I make me write in the console for example 5 * 8-45 + 66 and...
Sorry for this silly question but I am a newbie in c ++, how can I make me write in the console for example 5 * 8-45 + 66 and then get a result as I can do
11 Antworten
+ 3
Ignacio if you just do the first lessons, you will not still need to got a hint: you will have learned it by youtself ^^
+ 1
start studying your c++ lesson: you will discover that root functionalities very quickly ;P
0
visph If I am taking more c ++ course, could you give me a hint.
0
Ayush Could you give me a hint
0
???
0
Start the lesson, simple.
0
You do not understand me, I can add, I leave you my example #include <iostream> using namespace std; int main () { int a, b; cin >> a >> b; cout << a + b; // or int sum = a + b; return 0; } there but my doubt is that how can I put it in the input N numbers to say in the input it would put 7 * 8-7 + 71/6 later I would put 7 + 8-9 * 9 and the results would come out.
0
?
0
?
0
Yes Martin Taylor
0
"How can I enter a formula on the command line and have it evaluated?