I'm getting a ton of errors, but don't know why could someone take a look at my code and offer me advice, also i'm pretty uncertain that this is the best way to write the code in terms of loops and stuff, any help is appreciated
Some bugs are fixed by Ericool. Here are some explanations:
1. The operator >> takes its left operand as an input stream. It manages a pointer to the input data and tries to put some data pointed to by this stream pointer into a variable which it expects at its right operand. In line 15 of your program f.e. the right operand isn't a variable but a constant string expression. Also in this line the left operand isn't an input- but an output-stream. Ericool does it the right way. (Have a look at the "Reference" pages of this site).
2. The same applies to operator << f.e. in line 19.
3. You'll run in an endless loop at line 20! Take a piece of paper and a pencil to test the result of the while condition for some input values (f.e. 'n', 'N', 'Y', ...).
4. This curious system("pause"); statement is used only in some cases on MS-Windows platforms (See the initial Beginners-thread of this forum).