i have a program at the moment that is asking the user to input thier name, age and course. the details are stored in a stucture and is the passed to the function by the caller. the function collects the data and then on the return to the caller the stucture contains the useres details. then main() should output the contents of the structure.
at the moment i have this but for some reason when you put your name in it skips Age, and Course. also i am unsure if it is doing what i have explained corectly. this is what i have so far
any help will be much appreciated
using namespace std;
void myFunc1(myStruct m) // by value
cout<<"Enter you name";
void myFunc2(myStruct &m) // by reference
void myFunc3(myStruct &m)