Obtaining and parsing a string

Hi,
I need assistance with a program. In my program, a user should indicate the number of lines of characters he will enter and then I would like to count each line based on the new line character and save each line to a separate string.

Any suggestions are helpful.

Initially I used this to obtain the string: getline(cin, stringG);
However it does not seem to work as nothing is displayed.

I then have a case switch statement to check and replace each string with a different character:

switch (string) {
case 'a':
stringS = 'y';
break;
case 'b':
stringS = 'h';
break;
case 'c':
stringS = 'e';
break;
}

Thanks!
Topic archived. No new replies allowed.