Not sure if this should go here or in the C++ forum, so ill try here.
I want to make a simple program, which creates a window (I got that part done). When the window opens, it displays a number (a variable). Then, there is a menu, which has multiple numbers on it, such as the numbers 1-10 under a popup called "1-10" etc. Ive got that part done too. I know how to make individual menu items with a check mark next to them, but how do you make only 1 have a check mark?
For example, when you start the program, variable a=0. No menu items have check marks next to them. Then you select the number 2 on the menu. Now variable a=2, and the "2" menuitem has a check next to it. Then you select "1", and the variable a=1, and the "1" menuitem has a checkk next to it, and "2" does not.
How would I go along doing this? It's probably simple...but I'm still new at this.
EDIT: I just realized, I'm not sure how to display variables in windows. How would I do that?