Help me out , This code only print First part till white Space For example if i give Input "Jhon Kane"
the it only prints "jhon" kindly help me with some code which print the whole Name
#include<iostream.h>
#include<stdlib.h>
#include<conio.h>
main()
{
char *c;
c=new char[20];
cout<<"please Enetr the string :";
cin>>c;
cout<<"string is : ";
for(; *c!='\0'; c++)
{
cout<<*c;
}
getch();
}