cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Lounge
Status ON/OFF - Case 1
Status ON/OFF - Case 1
Sep 1, 2018 at 7:51am UTC
pLearner
(26)
Hey guys wondering how I can have a status display. Let’s say Case 1 I have not press 1 yet so I want it to show in console Infinite Ammo - OFF. Once the 1 key is pressed it will display Infinite Ammo -ON
So basically my code looks roughly like this:
switch (choice)
{
Case 1: // Function
// Function
}
Sep 1, 2018 at 2:57pm UTC
closed account (
E0p9LyTq
)
It's case, not Case.
You want buttons, you should learn how to implement a graphical user interface.
I personally would use the Windows API. Others here will suggest QT or something else.
What you want to do is easily done, with a bit of knowledge under your belt.
Topic archived. No new replies allowed.