Hey guys, I really need your help on this, because I'm either being really dizzy or I just can't figure out why my code isn't working at all.
I've wasted around 4 hours trying to turn around this problem so far and I just can't.
here is the part of the code responsible for all my frustraion:
cout<<"Name:"<<endl; fgets(name,256,stdin); cout<<"Phone:"<<endl; cin>>phone;
I need to use fgets because if I use the standard cin for my char name, it will end after the first whitespace typed and I don't want that.
The line Name: is automaticaly skipped and the result is this:
(waiting for input)
If you know any alternative for this I would be really happy.