57 Posted Topics

Member Avatar for hitek

1 is a TYPE of function that returns void and takes a pointer to a CSSMAPI type 2 is a function POINTER to a function that returns void and takes no arguments

Member Avatar for infamous
0
100
Member Avatar for dev1l

1)what u should do is have a member function called add_fract(Fraction ftoadd). this function would be used as follows: [code] Fraction fract(3,4), other_fract(5,6); fract.add_fract(other_fract); [/code] then this would add other_fract to fract. you also need to add a 'get' method to your class, something that will return the two private …

Member Avatar for infamous
0
243
Member Avatar for red_evolve

[QUOTE=r0ckbaer][code] for (int i = 0; i < rlen; i++) { printf("%x\n", fgetc(input)); } [/code] do it that way[/QUOTE] this is wrong. you cannot just call functions without checking the error return of them. fgetc() can fail, and must be checked. and from the ff output u can tell that …

Member Avatar for infamous
0
234
Member Avatar for Darc
Member Avatar for infamous
0
270
Member Avatar for FUDragon

you can use this code i've written to measure the number of cycles each one takes. however, im already sure that teh 2nd way is faster. also u should always inline any simple assingment functions so that there will be no function call. creating/destroying objects will most certainly incur more …

Member Avatar for infamous
0
163
Member Avatar for Levi

there is no issue that u as a programmer need to worry about concerning RAM, other than running out of it that is! to optimize code, you worry about writing good algorithms, the system RAM has nothing to do with this. as long as u are careful to not leak …

Member Avatar for infamous
0
191
Member Avatar for Saik

try using the 'chdir' command to change directories. the problem with using system("cd"), is that the 'cd' command only affects the current process executing it. after that process terminates, the current working directory is reset to that of the parent process. in the case of using system(), this actually creates …

Member Avatar for infamous
1
295

The End.