Re-read the first post
Type: Posts; User: major_blagger
Re-read the first post
try searching for 'aimbot' 'source' or similar variants
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1043803465&id=1043284385
You might prefer to defer argument checking (other than exceeding the max string length) to send_it.pl. This potentially makes for easier maintenance.
In other words, construct your cmdLine string...
Expand
K&R2 uses for(;;)
as in
#define forever for(;;) /* infinite loop */
trains.h?
Use arrays of names.
e.g. {"The Sun", "The Times"}
Now you can access according to the chosen file
e.g. func(names[chosenfile1-1], names[chosenfile2-1]);
Make two separate projects
How about a calculator?
You ask for an expression eg.
1 + 5
48 / 2
1 + 5 / 5
1 / 0
and produce the answer
1 + 5 = 6
Easy
So they can plug 'The C Programming Language' and make more money.
;)
What were the expressions that gave the bad output?
At the moment you are only handling single digit numbers so numbers of more than 1 digit may result in some unexpected output.
OK. Consider it from a different perspective. When you post code, people here may try to compile it so that they can help you out. If you post code which isn't mainstream C (i.e. C++ style comments...
If you practise good habits now then it will save you a LOT of pain in the future. Brian was trying to help fix some of the problems which, down the line, may be very hard to debug. You were not...
lol. I think "I am silly" is a replacement for characters in banned words
Post what you have
I agree. Look into how diff is done. Also look into longest matching substrings and sequence alignment. Or you could take a list of all the words and see how many match, irrespective of their...
You may want to consider using string to integer library functions (e.g. atoi() or strtol())
or do it one number at a time e.g.
take the 1(i.e. take the '1' and turn it into an integer)
add to...
Was it a book for C or for some functional programming language?
I guess it all depends on the scope of your restrictions.
Could you post your output for "they call me jim"?
I wouldn't dare suggest it was bad code. I was only helping out the original poster and anyone trying to learn from this thread that they should take care in understanding that the function is not a...
Beware of this code.
Rather than reversing the words ("they call me jim" -> "jim me call they") it will reverse the whole string ("they call me jim" -> "mij em llac yeht") which given the...
For fun. Something tells me people aren't referring to this thread to get style tips.
Only in C99
main(){int i;for(*&i=0;(&i)[0]<012;0[&i]++)putchar(060^i|060|i^060);putchar(10);}