i am coding a programe and i need to output hello when the user enter double spaces " " without quotions , my code is
char c,d;
while(cin>>c>>d)
{
if(c==' '&&d==' ')
{ cout<<"HELLO"<<endl;
break;}
}
i enter double spaces and press enter nothing is done . please help me ;;;