I'm writing this for a C programming class- we've worked through everything up to this point- this was last weeks lab assignment and i haven't been able to get it to work, even though i just...
Type: Posts; User: FiringBlanks
I'm writing this for a C programming class- we've worked through everything up to this point- this was last weeks lab assignment and i haven't been able to get it to work, even though i just...
I also have Visual Studio 2010 but it gives me odd errors that otherwise work fine in Bloodshed. Also, I'm not sure if it's just me- but I find the compiler's error definitions cryptic and point...
/* Fahad Shah
Lab 5
10-5-11
Functions*/
#include <stdio.h>
/*Prototypes*/
int Menu(int UsersMenuChoice);
Hmm... the only odd looking function I'm using is the 'switch' funciton- does that require a special library? Other than that, theres also a 'while' function in there.
I've taken the apostrophes out- but shouldn't you tell the compiler to discard the enter key after the user enters their number? (hence, the %*c in scanf)
It's now held up on the errors:
[Linker...
lol nice signature grumpy.
Well this function runs only to validate a number entered in by the user to see if it falls into a certain range. If it doesn't, it asks for a new number that does fall...
int GetInt(int IntUsersNumber, int IntLowRange, int IntHighRange)
{
int IntUsersNewNumber;
while (IntUsersNumber < 'IntLowRange' || IntUsersNumber >...