| | |
How do you make an if statment to several things?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 1
Reputation:
Solved Threads: 0
I'm making a program and want to use an if statement to add a 0 to output if the numbers = 0-9. I know how to do an if statement like:
int number=0;
if (number==5){
cout << " whatever " << endl;
}
Is there any way to do somthing like this?
int number=0;
if (number==1-9){
cout << " whatever " endl;
Thankyou for the help, it is well apreciated!
int number=0;
if (number==5){
cout << " whatever " << endl;
}
Is there any way to do somthing like this?
int number=0;
if (number==1-9){
cout << " whatever " endl;
Thankyou for the help, it is well apreciated!
![]() |
Similar Threads
- add to combo box from access with where statment (Visual Basic 4 / 5 / 6)
- [Question] The if statment (C++)
- calculations in formview with C# (C#)
- Array/String intersect and Array/Array intersect code (C#)
Other Threads in the C++ Forum
- Previous Thread: Search array and edit
- Next Thread: Playing a game of PIG, while loop not working properly?
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory microsoft newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template templates test text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






