대략 코드는


1. int main()

2. {

3.    char menu;

4.        while(true)

5.        {

6.            cout << "Enter: ";

7.            cin >> menu;

8.            

9.                switch(menu)

10.               {

11.                case('E'):

12.                case('e'):

13.                {

14.                    cout << "What is the investor's name? ";

15.                    getline(cin, name);

16.

17.                    cout << "what is your bank account number" << name << "? ";

18.                    getline(cin, accNumber);

19.

20.                    cout << "Enter the current balance of the investment account: ";

21.                    cin >> balance;

...


이런식으로 되있는데요 


플그렘을 실행시키면 


what is the investor's name? what is your bank account number?


이렇게 15번줄이 무시되고 바로 18번줄로 실행이 됩니다.


그래서 말인데 switch에선 getline 말고 다른걸 사용 해야 하는건가요?


ps.   아까는 accNumber만 받고 코딩이 3번쨰 줄로 돌아갔는데 이젠 다 정상적으로 되고 15번줄만 무시가 되네요... 왜이러는거죠?