Forum: C++ Nov 1st, 2007 |
| Replies: 7 Views: 1,468 don't i feel like a dumb bunny, I did the == && ==, not the != && !=.
i works. |
Forum: C++ Nov 1st, 2007 |
| Replies: 7 Views: 1,468 Ok, still can not get it to work right, if I change the code to == , then it exits the loop after one selection, and does not wait for the customer to press q. Here is the code for the loop:
do... |
Forum: C++ Oct 31st, 2007 |
| Replies: 7 Views: 1,468 it should be if the user hits either the Q or q then exit the loop., but when I was using the or, it would not exit the loop. |
Forum: C++ Oct 30th, 2007 |
| Replies: 5 Views: 652 for lineing up the numbers:
use the fixed and setprecision(x) options where x is the number of decimal places you want to use. This needs to be declared before the printout.
( ie : cout <<... |
Forum: C++ Oct 30th, 2007 |
| Replies: 7 Views: 1,468 [code]
case 'q' :
case 'Q' :
cout << "Computing your totals" << endl;
break;
default : cout << "Invalid choice!";
}
}
/* This is where it should... |
Forum: C++ Oct 23rd, 2007 |
| Replies: 2 Views: 752 the instructor has us using cout and cin only right now. |
Forum: C++ Oct 23rd, 2007 |
| Replies: 1 Views: 412 These are the sites that I am using for my learning:
http://www.cplusplus.com/
http://cppreference.com/
You will need to understand c++ before you can move on to the Visual side.
The... |
Forum: C++ Oct 23rd, 2007 |
| Replies: 2 Views: 752 I had this for classwork and was able to get it to work.. is there a better way to do the right alignments for the cost columns??
When I turned this in, the output returns right, but I was told... |
Forum: C++ Oct 23rd, 2007 |
| Replies: 5 Views: 841 line 60 - Error 1 error C2065: 'default' : undeclared identifier d:\COSC1436\temp\temp.cpp 60
and line 60 - Error 2 error C2146: syntax error : missing ';' before identifier... |