@Whiteflags - This is what I was confused about. I have never worked with anything like this before so I do not know what it means. I am not trying to have you do this for me. I am simply asking...
Type: Posts; User: Haal
@Whiteflags - This is what I was confused about. I have never worked with anything like this before so I do not know what it means. I am not trying to have you do this for me. I am simply asking...
OK here is what I have so far and as of right now it works. Except I have one question.
string names[15];
int ages[3];
char answer = 'y';
while(answer == 'y'|| answer == 'Y')
{
Could you explain to me what is happening here? I am confused
Every time I try to run this it asks me for the name and once I hit enter It keeps running. It does not let me enter a age or ask if I want to run this program again.
int main()
{
...
I am writing a program that prompts the user for the name and age of a group of people. The group's size is unknown initially, so the program must keep asking the user if they want to enter more...
Thank you everyone for all the help! I have never been to a forum where people were so quick to respond and I really appreciate it!
Here is what I have so far but if the number is negative then it displays the wrong answer. I know there is probably an easier way to figure this out, but it has been forever since I have worked...
Thank you guys for the replies! I understand how I would do the do the subtraction to get the 2 closest numbers, but the problem I am having is how would I keep track of those numbers? does anyone...
I haven't taken a C++ class in over a year and I am asking for some help. I do not want anyone to give me the answer just to walk me through how to answer this.
Here is the question:
Design an...