Your machine likely uses 32 bits for ints - to verify, you can multiply the macro CHAR_BIT by sizeof(int). Since the bitfield you've posted is...
I don't really know the science behind the macro, but they can be used to streamline tasks; You can do quite a bit with them, but they're also...
if it's the same program requirements, then you need to check amount for first being a valid number, and then being a multiple of 10. If it's...
You've got a few of things going on. Below, you're using the wrong format specifier in scanf. for(i=0;i<7;i++) { printf("\n speech...
-i need to write a program for an automatic teller machine that dispenses money. have you? -The user should enter the amount desired (a...
The first printfs call by value so they don't change n or m when they return. After that, you've assigned both n and m values m=3; n=A(n);...
here is a cached copy from google. The actual url returns a 403 for me...
Which game? I don't know what "Computer co" is. The bit I posted was something similar to what I had done... do you mean that?
I've never heard of the game - what's it similar to? From your description, you'd probably need piece and their coordinate info. If your board...
The first thing you should scrap is calling main() within main(). The next thing is using gets(). That function doesn't check that you've got...
the armstrong number is interesting. to be different, I'd try something like char num[4]; int i, val, sum; for(i=1; i <= 999; ++i) {...
you didn't say what was wrong or what it should be doing, but your function is returning a value without ever entering the file operation. It...
:santa: Merry Christmas and Happy New Year. :santa: Cheers :D
on the command line, you'd enter something c:\Users\mcfoxxy\Documents\Visual Studio 2010\Projects\CPC\Debug>cp inputfile_name outputfile_name...
#include <stdio.h> #include <stdlib.h> #include <time.h> declare any function prototypes / defintions int main(void) { declare...
I'm not familair with total commander, but using XP, for example, if you clicked on the start button, clicked "run" and typed "cmd" in the dialog...
while(...) { if(DeleteFile(...) printf(...) else printf(...) ++i; } you should probably enclose that in curely...
maybe an array to keep track of pairs? unsigned char pairs[52] = { 0 }; // assuming alpha only if(s1[i] == s2[i]) { if(isupper(s1[i])...
the strto functions return 0 if the string cannot be converted, but what if 0 is a valid result for the program? if invalid input can return a...
where do you use graphics.h? the code in input1b isn't valid as a program. you'll have to modify it by putting the snippits in function blocks...
Separate names with a comma.