Thanks to you both. I played around with the googlemeister and found that there was an API for Win32 programs in C. I had no idea this was possible but you can rest assured I'll be spending the...
Type: Posts; User: monkey_C
Thanks to you both. I played around with the googlemeister and found that there was an API for Win32 programs in C. I had no idea this was possible but you can rest assured I'll be spending the...
Hello all,
Having been programming in C for over a year, I am finally becoming comfortable with the development process. I am currently working on a database to track animal histories. I...
'fraid not quzah. When dealing with user input, ANSI C compilers will treat incoming text as the literal text. It won't do any interpretation of the backslashes as escape characters. Since when...
I used scanf under the auspices that my error checking would make up for its shortcomings.
This code is only to be used for one of my assignments in my current class. I will obviously...
code:
--------------------------------------------------------------------------------
printf ("Enter new employee ID no.:");
scanf("%d", &i_temp);
validateID(i_temp, emp, empfPtr);
...
could be wrong here, but I'm not. atof() is used to go from ASCII to a double, not a float. Like I said, I could be wrong, but I'm almost certain that's the way atof works. Check out your...
Hello all,
I am currently working on a library of functions that I will be able to use in place of scanf(), simply because scanf() is unbelievably stupid. Anyways, I have code written for...
This function displays a menu to the user then prompts for input, validating the input information and repeating the menu until the info IS valid. Option 9 will eventually be used to exit the...
I swear this is my last one for the night. This while loop should be presenting the menu until a valid option is selected. Right now it just repeats the menu even after a valid option is selected. ...
I'm sorry, I made two mistakes, first of all I should have mentioned I was specifically trying to avoid array syntax. Secondly, it is not passed into this function as a const, I was looking at a...
OK, wDeck was originally declared in main() as
int deck [4] [13] = {0};
and was passed into the function containing my problematic line as
const int wDeck[][13]
but...
How do you mean that it would depend on how I declared wDeck? I'm not sure I understand.
Thank You Magos! I knew that formula existed I just couldn't figure it out. Again thanks!
Does anybody see anything wrong with this code?
I keep getting an "illegal operand" error in my MetroWerks CodeWarrior compiler.
Your help is appreciated.
code
/*wDeck is a two...
Obviously, since main is a function just like anything else, it has a return type. Yes, "return 0;" just tells the system that main compiled fine.
Of course, this only makes a difference if...
I've got a card dealing program and I want to convert all the array syntax into pointer syntax. Whereas in array syntax I would just use the element's subscript (i.e. arr[3] ) in pointer syntax I...