this line is giving me an error: "Too few arguments to function 'strcmp'
How can I fix this?Code:while (lastsearch (strcmp(r[i].last)) < 0)
this line is giving me an error: "Too few arguments to function 'strcmp'
How can I fix this?Code:while (lastsearch (strcmp(r[i].last)) < 0)
What are you trying to compare r[i].last with? That would be the other argument to strcmp.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
to compare something you need at least 2 things to compare. Hence too few arguments.
Maybe the dot should have been a comma.