Thanks, but the program is suppsoe to prompt the user until a valid abbreviation is entered. Then it;s suppose to end, my (dare I say) program keeps prompting the user and never wants to end. :( ...
Type: Posts; User: Loraswish
Thanks, but the program is suppsoe to prompt the user until a valid abbreviation is entered. Then it;s suppose to end, my (dare I say) program keeps prompting the user and never wants to end. :( ...
I cant not get ths prgram to stop asking for input. I don't know when the problem is . I think it's in the do-while statement, but I can not figure it out. I have not included all the state initials...
void GetAngleVelocity(/* in */float& angle,
/* in */float& velocity)
{
//get angle
cout << "Enter the angle in degrees (example 45.0, 90.0).\n";
...
i typed it in on this site this morning and yes I cut and pasted the one while statement. I do not have this in the program. like i said it works if it's in the PlayGame module, but will not it I put...
I have to verify that the user has entered valid data. that the numbers entered are not negative. so when I put in this:
cout << "Please enter the distance to the target.\n";
cin >>...
I have tried to input data validation in this code (which works dist 150, angle 37, vleocity 71) but everything I do messes up the code. I know I am no programmer and I solved the hair falling out...
actually this program is in chapter 6, and we are still in chapter 3, trying to work this out ahead of time. so I guess I should be considered a novice ( i know enough to cause my system to crash,...
well mooooo then, cause I can not convert it. Did I mention that I am a newbie?, guess not. anyway I can do the if/else and the break statements but this loop has me more than a little loopy....
Your right it does work, problem is:
1. the program specifically called for the user to enter a character of his/her choosing.
2. this has to be written in a while loop, not a do-while loop, I...
trying to make this thing print out a diamond
i e @
@@@
@
#include <iostream>
int main()
{
I have lost sleep. hair and one letter grade behind this program, this and the calendar one i wrote, everyday in that starts on monday and every month has 31 days.
I have been wrestling with this code for one year, I no longer have an infinite loop, but I also do not have a diamond either, something is wrong but I dont know what.
half = number/2;
...