Hello,
Could you please update your post and use the code tags (select the code you wrote and click the <> button), this will add line numbers so we can tell you where in your code we are talking about. Also the formatting would be preserved, making your code easier to read.
To finish your project you will first have to get your code to compile.
In this line you are trying to put a floating point value in an integer variable const
const int rowNum = (15.0); |
, why not just put an integer value of 15? I can't imagine any half rows.
When you reach this line in your code:
double rowValue[rowNum], rowPrice[i]; |
the variable i does not yet exist. I expect it should be the variable col, but that one is declared 7 lines later so you can't use it yet.
Also I think "rowNum" in the previous line and "row" that is declared 6 lines further should probably be the same variable.
In
void seats(double rowPrice[], int row) |
you again use two variables "cost" and "total" that don't exist in that scope.
If you solve these issues you will be able to display your matrix of empty seats.
As for your second question:
First make sure that what you have is working. Only after that, have a look at:
http://www.cplusplus.com/doc/tutorial/files/