Im coding a theater's seating chart and calculate the prices
but when I execute it it shows me error message which is
"Error 1 error C3861: 'getPrice': identifier not found"
When you want to call some functions you need to tell the compiler that they exist and what they do (declare them that is). After you can inform the compiler how they do it (definition that is).
So you have the following options:
-either declare your function (void getPrice(char seat[15][20]);) before main() and let your code lay definition after main() (as you do)
-move your definition before main(). You don't need to declare your function now now.
-You can use a separate cpp file and include its header file inside your main.cpp file