0
How can I make choices in cpp?
I've just started learning c++, and I was wondering if it were possible to create choices that lead to different programs? Like for example if I were to make a simple addition and subtraction calculator, how could I have the option of choosing which calculator to use, and have both options work, but in the same code? Can I use buttons somehow?
1 Answer
- 1
buttons can be uaed when dealing with GUI (QT Creator provides a aimple GUI for creating GUI applications :v, very simple but primitive). You can also create your own graphical app but it ia harder and not at this level of knowledge. To make choices, search for IF ELSE STATEMENTS and SWITCH. See if it suits you and let me know. If you want some help with c++ I will be glad to help, on Skype too if you want a really big explanation and make some examples together