milage = atoi(strtok(NULL, " "));
drive(&cars[carID-1], milage);
I have something like this for numbers, I want to use same thing for a name (character).
I tried this:
user = strtok(NULL, " ");
rent(&cars[carID-1], user);
but it did not work out.
Can any one help?
workfirst. Give minimal example of the code that can be compiled and ran, and describe what you want it to do. Otherwise this is not a question.