57 Posted Topics
Re: 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 | |
Re: 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 … | |
Re: [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 … | |
Re: why would a system header be including your class files? try adding #include "cTile.h" to cMap.h instead. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … |
The End.