I see what you are getting at, but my if statement does solve one of my problems. However, I have just solved the problem of double printing. while(command = getchar() != '\n'); takes care of it....
Type: Posts; User: Thanksbro
I see what you are getting at, but my if statement does solve one of my problems. However, I have just solved the problem of double printing. while(command = getchar() != '\n'); takes care of it....
if(*row < START||*col < START||*row >= MAXR)
return FALSE;
implying that you can't have a row or column less then 0 and that you can't have a row greater or equal to the maximum row.
In the driver I have if the function coordinate is true, print the coordinates. Otherwise print invalid command.
but if that is the case, shouldn't it print the new coordinate and then invalid command?
Hey guys, I'm coding a function for a game somewhat like minesweeper and I have encountered a problem. How this function is suppose to work is the user gives it a movement command and if it is a...
Figured it out. Thanks!
Hello, i'm working on part of a simplistic calculator and encountered a problem. The function that im working on is given an integer and prints it. It works for any number as long as it does not...