Here is my code. I seem to be doing something wrong and am getting multiple compilation errors but feel that it has got something to do with one thing alone. Kindly help.
The problem is that you are trying to make assignments that are dependent on runtime values outside of main or any other function. This is not allowed. Global vars can be declared outside of main, and certain elementary assignments like assigning constants like NULL or constants. The thing these all have in common is that these actions are all things that can be done at compile time, not run time.
The assignments that the code is trying to do must be done inside of main or inside of a function.
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)