I am storing words on run time in array but when i give space between words the program don't ask for second input it give me an output directly without taking second input here is my coding .
#include<iostream>
#include<conio.h>
using namespace std;
int main(){
char a[50];
char b[50];
cout<<"please tell us what is your language\t";
cin>>a;
cout<<"please tell us what is your language\t";
cin>>b;
cout<<a<<b;
getch();
}