Unfortunetely we haven't learned about clear() in class yet, and so it probably won't be allowed in our homework (as she has stated something to this effect before). I half expected most, if not all...
Type: Posts; User: Lucid003
Unfortunetely we haven't learned about clear() in class yet, and so it probably won't be allowed in our homework (as she has stated something to this effect before). I half expected most, if not all...
Alright, I'm writing a program that calculates a grade average. I want to allow users to input integers (80, for instance), doubles (92.5), or letters (A, F, a, f, etc).
Basically, I'll be adding...
Thank you very much. So, basically, unless I'm using a char array, I cannot use p++? If that's the case, then I'm happy with my result.
As for not creating the loanPtr, this assignment...
Alright, what I'm trying to do is use a for loop to calculate a monthly payment using a position in the array, and using a pointer to change the original value of the array to what I calculate. I...
Well, either I'm not understanding the cin.get() part in your last paragraph, or I'm just implementing it incorrectly. Either way it's a lot of trouble.
Thanks for the help, everyone. I've got a...
Daved, thanks for the help... unfortunetely I cannot use what you have provided me :(
This is homework (if you couldn't guess :P ), and we aren't allowed to use anything that hasn't been covered...
Hmm.. notice at the end of my while loop, I have this:
default: //catch all other characters
cout << "Incorrect character entered." << endl;
break;
}
cout << "Enter the product...
Well, the thing is that I don't want the while statement to end on a default. I want it to cout that an incorrect character was entered and then prompt them to enter a character, and store it in...
alright... I'm writing a program and my switch statement seems to be causing an infinite loop in certain circumstances.
When putting in the case numbers, the program works just fine... but when...