Hello. I began learning C++ several month ago and am currently enrolled in a class for beginners at my university. I code almost every day and have the basic concepts and syntax down but I seem to have hit a wall here.
I am required to make use of user-defined functions in one of my projects but I simply can not grasp this concept. I have tried to use a simple physics equation to figure out the correct syntax but with no luck.
Okay, I see that I was not defining my variables with in the main function, and my syntax was off. My professor prefers that we use namespace std; so I have not learned any other way. To elaborate my project requires me to use a switch statement to choose from a menu of non-zero integers.