Hi,
I know this is a common topic on this forum, but I haven't found a nice, clean solution anywhere. Main thing is that I'm never sure whether the solution described really applies to my code. And when I try to integrate pieces of code from those solutions in my own code it never does what I want it to :).
I request some inputs from the user:
Now when I have for example a 205 GTI and enter that after Please enter the vehicle model it skips Please enter the model year. I found out that it is because of the space between 205 and GTI, because GTI is stored as vehicle_year if I enter the string above.Code:puts("\n--------------------------------");
puts("Please enter the vehicle make: ");
scanf("%s", &vehicle_make);
puts("Please enter the vehicle model: ");
scanf("%s", &vehicle_model);
puts("Please enter the model year:");
scanf("%s", &vehicle_year);
puts("Please enter your name:");
scanf("%s", &tester);
puts("--------------------------------");
Has anyone got a solution for this problem? I know it's probably quite simple, but not for me (yet) :).
Thanks very much in advance!
René