hehe, i always forget to do that !!! :D
Type: Posts; User: theFOX
hehe, i always forget to do that !!! :D
Strange, i tried it before, and it gives me the same error every time ( invalid conversion from void* to long long int* ).
Actually, i didn't see it without casting before, n e one tried it ??
...
uhm, sorry :D
long long int fibo( int n )
{
long long int* mem;
mem = (long long int*) calloc( 0, sizeof(long long int) * (n +1) );
long long int ret;
A deadly more efficient fibo function using dynamic programming. it may help you later.
long long int fibo( int n )
{
long long int* mem = new long long int[n +1];
long long int ret;
Here is the solution using a some kind of visited flag so that you donnot enter those cells that makes you unable to move again. If it is not clear, i will make an array of flags, each cell will...
Hello SheilahT,
Just make sure you have a '\n' at the end of that "new.txt" if you donnot have one there, the put pointer will be placed at the end of the file so that you will not be able to...