1
Window / How to display numbers in a window?
« on: June 26, 2012, 08:47:00 pm »
Hi everyone
I am using SFML 2.0 with Visual Studio 2010 and trying to display some numbers in a window. I want the window to read a certain integer value (int number) and to display this number every time I press a button in the window. However, I want to link this button to a command that states int number = number + 1. Basically the window should update the number every time the button is clicked. I'm not sure if I should use pointers, and I'm a beginner in C++.
I hope you can help me.
I am using SFML 2.0 with Visual Studio 2010 and trying to display some numbers in a window. I want the window to read a certain integer value (int number) and to display this number every time I press a button in the window. However, I want to link this button to a command that states int number = number + 1. Basically the window should update the number every time the button is clicked. I'm not sure if I should use pointers, and I'm a beginner in C++.
I hope you can help me.