| | |
More nubiness
Thread Solved |
Thanks a lot Jobe, here is my code i am currently working on as of about 10 minutes ago.
Would everything in there be legal so far as long as i finishing declaring everything? Thanks
C++ Syntax (Toggle Plain Text)
#include <iostream> #include <fstream> using namespace std; //SetConsoleTitle("ItemIzer"); int main() { char cho cout<<"\n\n\n\n\t\t"; cout<<"1: View Catagory"; cout<<"2: Append new item"; cout<<"3: Truncate an item"; cout<<"4: Create Catagory"; cout<<"5: Delete Catagory"; do { bool repeat(false); cout<<">>"; cin>>cho; switch (cho) { case 1: case 2: case 3: case 4: void name; ofstream Clist ("Catagorylist.txt", app); cin>>name; Clist<<name; case 5:
Would everything in there be legal so far as long as i finishing declaring everything? Thanks
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Since your switch variable cho is a char, your case labels must be like
case '1': - the labels must be literal characters. Don't own a gun but I'm going to join the NRA.
I figure anything that irritates liberals is worth my support.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
I figure anything that irritates liberals is worth my support.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
Yes i understand i need to use break; =P
So what if i make cho an integer? Then it would be 1 and not '1' correct?
>> - the labels must be literal characters.
I got a long way to go lol. Thanks in advance
So what if i make cho an integer? Then it would be 1 and not '1' correct?
>> - the labels must be literal characters.
I got a long way to go lol. Thanks in advance
Last edited by clutchkiller; Nov 11th, 2008 at 3:20 am.
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
![]() |
Other Threads in the C++ Forum
- Previous Thread: convert input to binary
- Next Thread: Loop recursion
Views: 521 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for C++
algorithm api array arrays assignment basic beginner binary c++ c++borland c/c++ calculator char class classes code compile compiler constructor conversion convert count delete desktop dll dynamic encryption error file files form fstream function functions game givemetehcodez graph gui homework i/o iamthwee input int lazy library linker list loop loops map math matrix member memory network newbie news number numbers object objects opengl output parameter pointer pointers problem program programming project qt random read recursion recursive reference search sort sorting spoonfeeding string strings struct student studio template templates text time tree variable vc++ vector video visual win32 window windows winsock wordfrequency






