Categories

A cin.getline example

/**************************************
cin.getline example
***************************************/
#include

int main(void)
{
const SIZE = 100;
char msg[SIZE];
cout<<"Enter a string."< cin.getline(msg,SIZE);
cout<<"The sentence you entered was"< cout<

return 0;
}

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

You must be logged in to post a comment.