cout << "Please enter A to add a purchase order,\n"
<< "P to process a PO, or Q to quit.\n";
while (cin >> c && toupper != 'Q')
=================================================================
Now from what I know that looks like an incomplete use of toupper. I looked up its signature and it looks to me like it needs to be given input in the syntax of toupper(int c). Is there a concept happening here I'm not getting or is this just a typo?
hmmm I've never seen any code like that before. And yes, toupper is used like that, excepts its a char not an int. I've done an example here: http://www.cplusplus.com/forum/beginner/9990/
I threw the complete code into VC++ 2008 express and it surely didn't compile until i edited it to give an argument to toupper. Guess its just a typo then.
No just so I keep my facts straight a char value doesn't have to be absolutely equal to an int does it? The char type and int type both do hold numbers but the char type isn't capable of representing as many numerals as an int correct?
I made a big check in my brain about char and int being actually dis-similar in memory size and capability. Hope i got that right.