Hello, this is my first post on these boards, and any help you could give me would be great. I was wanting to be able to set a variable so if entered would link it to a earlier part of the program.
cout << endl << "you have just entered the co-ordinate [" << x[i] << ", " << y[i] << "]" << endl;
}
return 0;
}
I would like to make it so that I can put the option of whether they would like to re-enter the point if they put it in wrong, however I have no idea how to go about doing this.
actually yeah that is how it is supposed to be, because you want to keep looping if the user types in a n or a N. Make sure that the user knows what to type in, or else s/he might be confused, just put in the (y or n) just so they no to type that. Or you could use a string and instead of y or n is would be yes or no. That's up to you.