Ok I have a Car, Truck and Senior. I have to input C for Car, T for Truck, S for Senior. Our instructor wants us to input the the One letter but show the whole word.
So I did
cout<<" Type.....";
cin>> type ;
From here I punch in C, and only C shows up. How can i punch in C, but have Car show up instead??? Is that possible
Someone suggest the switch statement, but it didn't work plus that is a little to advanced for where are class is now. All I can get is inputting C, just the letter C comes out. I did something with an if statement and Cars came out on the next line.
I want to punch in C but when I hit enter I don't want it to be there, just the word Car, Truck or Senior. Any help
2007-07-10
07:18:22
·
6 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
Is it that hard, or not possible
2007-07-10
07:23:13 ·
update #1
The Swith Statement still leaves the C, T, or S there
2007-07-10
07:27:16 ·
update #2