Search:
Forum
General C++ Programming
IF Statement
IF Statement
Jan 24, 2021 at 3:32am UTC
Fresh Coder
(4)
I want to make a program that asks the user to type "HI". But when that it is stored in the variable. I want to make an IF statement that does, if the variable name is equal to "HI" print out "Correct". Any Ideas. Thanks in advance.
Jan 24, 2021 at 11:43am UTC
seeplus
(6592)
and what part of this requirement don't you understand/am having difficulty with?
Display some instruction to input (cout)
Obtain the input (cin)
Test input (if)
Have a go and post your attempt so that we can advise further.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs