I am a fairly new C programmer and am having trouble using
gets().
I am using it to get values for structure members from keyboard input (not sure if this is important or not) The actual problem is that when executing, the first gets() statement is ignored, unless I put two statements together.
For example:
printf("Enter Make and Model: ");
gets(car[rec_num].make_model);
Becomes
printf("Enter Make and Model: ");
gets(car[rec_num].make_model);
gets(car[rec_num].make_model);
Can anyone shed any light as to why this is happening.
I am using Borland C++ Builder to compile my programs (Again not sure if that important but hey...)