Good day people. I have problem here where i got several errors i got is
error C2601: 'systemExit' : local function definitions are illegal
error C2601: 'addVehicle' : local function definitions are illegal
error C2601: 'sortVehicle' : local function definitions are illegal
error C2601: 'deleteVehicle' : local function definitions are illegal
You get the error messages because you are trying to define functions inside the main function. Functions are not allowed to be defined inside other functions. You should put the function definitions outside of main.
Yes, but this is just so that you get the idea. The dots have to be replaced by code.
In your original post, maybe you just forgot to put an end to the main function using } before you defined addVehicle(). Also note that a function definition should not have a semicolon after the parentheses.