Note that the operator>> will leave the end of line in the stream (which will be fetched by getline(...)). Remove the the end of line with ignore(...):
Thank you, but now I'm having some trouble taking in the user input when they order from the menu. (maxorder is a constant int with a value of 50.) It has problems with the equal signs. Any tips as to why? The main types of errors are
"error C2040: '==' : 'int [][2]' differs in levels of indirection from 'int'."
"error C2446: '==' : no conversion from 'int' to 'int [][2]'"
"operand types are incompatible ("int (*)[2]" and "int")"
According to the assignment, choices is 2-dimensional because it has "8 rows and 2 columns. Each row will refer to one menu item the customer picked; the first column will show the item number in the menu and the second column will show the number of pieces the customer ordered from that item."
Actually, she just sent the class an email giving more detail about it.
"User will make choices from the menu and these choices will be recorded in the choices array. For instance, if the user makes only one choice from the menu, first row of the choices array will be updated. If the user makes 3 choices from the menu first 3 rows of the choices array will be updated. The user can make up to 8 choices from the menu (note that the choices array has only 8 rows)."