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

3rd Jun 2021, 12:58 PM
Ignacio
Ignacio - avatar
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 ^^
3rd Jun 2021, 4:31 PM
visph
visph - avatar
+ 1
start studying your c++ lesson: you will discover that root functionalities very quickly ;P
3rd Jun 2021, 1:03 PM
visph
visph - avatar
0
visph If I am taking more c ++ course, could you give me a hint.
3rd Jun 2021, 1:29 PM
Ignacio
Ignacio - avatar
0
Ayush Could you give me a hint
3rd Jun 2021, 1:30 PM
Ignacio
Ignacio - avatar
0
???
3rd Jun 2021, 1:40 PM
Ignacio
Ignacio - avatar
0
Start the lesson, simple.
4th Jun 2021, 12:06 AM
🌌DarkFox
🌌DarkFox - avatar
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.
4th Jun 2021, 10:36 PM
Ignacio
Ignacio - avatar
0
?
4th Jun 2021, 11:41 PM
Ignacio
Ignacio - avatar
0
?
6th Jun 2021, 4:38 PM
Ignacio
Ignacio - avatar
7th Jun 2021, 2:15 PM
Ignacio
Ignacio - avatar
0
"How can I enter a formula on the command line and have it evaluated?
7th Jun 2021, 2:16 PM
Ignacio
Ignacio - avatar