you should check if your editor has a "highlight matching bracket" option, its useful in these types of situations. some editors will also add a matching bracket automatically for you, so if you type...
Type: Posts; User: LordPc
you should check if your editor has a "highlight matching bracket" option, its useful in these types of situations. some editors will also add a matching bracket automatically for you, so if you type...
fyi, printf is available in java aswell
wouldnt a scripting language be better?
just write the program using loops, then remove the loop, and copy the inside of the loop into your code over and over
edit: if your just learning how to program, im sorry, but you have a terrible...
A
/ \
B C
becomes
B
\
A
\
oops, didnt read you want to get into game programming.
yea, perl wont help much there. c++ is the way to go after you come to terms with C
perl would be a good utility language to pick up
a general tutorial/guide on bitwise operations would explain how masking works. you dont absolutely need to know binary, but i think it'd help
The GNU C Programming Tutorial
or typedef then declare
typedef struct child Child;
// OR
typedef struct child *Child;
struct child {
cant you just change how this code generation tool works so to get around this problem? ie, have it look elsewhere for the 'ignore' keyword?
id also like to know what this means
what does...
well since #include's arent really C, the #include line may be terminated by a newline, that is, everything after the #include is considered the statement. therefore no comments
i dont know though...
macro? memcpy? stay away
just make a new array and copy over the contents
if (z == 18) {
int temp[] = {-6, -3, 0, 4, 8, 6, 2, -4 };
for(...) {
...
if you just give him the code to read in the number from the user, you will have given him the entire answer
your call tree is confusing? your sorted it by depth level for some reason...? are the trailing zeroes required?
this is clearer in my mind, shows the recursion
print_combinations(3, 0);
...
the first thing you need to do is work out some sort of precedence
when you sort numbers, lower numbers come before bigger numbers
when you sort words, we use the alphabet, ie, 'a' comes before...
you can use getchar to get all of your input, you will just get the input one character at a time.
your question about scanf should be covered in any basic scanf tutorial
you cant directly compare two strings using the equals sign, you need to compare each character within the string.
if it makes it easier, it would be the same as comparing these two arrays
...
put this line at the top of your code
#define flush_stdin while( getchar() != '\n' );
and whenever you need to use fflush(stdin), just replace it with flush_stdin. it will do the exact same...
how about using the absolute value of (ge_event_id[0]-ge_event_id[1]) != 2
my gut feeling is that you need 3 pieces of information. the number you want to square root, a lower bound and an upper bound. so for example
1^2 < 8 < 8^2
so you could pass these into a...
i understand the problem, but your code is not solving it. its just printing out letters
you need to incorporate the letter the user gives you into the for loop so that you only print out part of...
id have a closer look at that harmonic num function
it doesnt do much
im talking about oo programming. im not sure you are...
well ofcourse you do, in the getter and setter. nowhere else though, thats what the getter/setter is for
im beginning to wonder if this is a joke. you've made 2 topics about this already and imo people have been quite generous with the help.
just go here Cprogramming.com - Tutorials - C File I/O
...