How to cin Space in c++?
- by Narek
Say we have a code:
int main()
{
char a[10];
for(int i = 0; i < 10; i++)
{
cin>>a[i];
if(a[i] = ' ')
cout<<"It is a space!!!"<<<endl;
}
return 0;
}
How to cin a Space symbol from command line? If you write space, program ignores! :(