#how to make multiple number calculator?

6 messages · Page 1 of 1 (latest)

rare obsidianBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

ruby heronBOT
#
How to Learn C++ Programming

Everyone learns differently, but the best way is to learn by doing: Working on personal projects, solving programming challenges, etc. Here are some resources to accompany you:

C++ Tutorials
Practice

• [Programming Challenges](#archived-resources message)
CodinGame
LeetCode
HackerRank

See Also

An Introduction to Modern CMake
cdecl+ - converts C/C++ declarations to prose
• Our #archived-resources channel. It contains many useful utilities.

plush trout
#

Use a recursive tree to represent each expression

#

Eg 3 + 2 * 5:

=> Expr
=> Expr Op Expr
=> 3 + Expr
=> 3 + (Expr Op Expr)
=> 3 + (2 * 5)
#

This will always expand left, you'll also need operator precedence and support for parentheses for a proper calculator.

frail hazel