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

Code:
#include <iostream>
using namespace std;
struct myStruct
{
   char Name;
   int age;
   char course;
};

void myFunc1(myStruct m)    // by value
{
    cout<<"Enter you name";
    cin >>m.Name;
}

void myFunc2(myStruct &m)  // by reference
{
    cout<<"Age: ";
    cin>>m.age;
}

void myFunc3(myStruct &m)
{
    cout<<"Course: ";
    cin >>m.course;
}

int main()
{
    myStruct m;
    m.Name;
    m.age;
    m.course;
    myFunc1(m);
    myFunc2(m);
    myFunc3(m);
    system("pause");
}
any help will be much appreciated