March 24th, 2010, 11:54 PM
Ohhh okay! That makes perfect sense!
Thank you for laying it out like that for me! :)
March 24th, 2010, 09:59 PM
Correct me if I am wrong, but isnt
ArrayOfPtrs[0][i] a 2D array?
So the pointers get me to the address of the array[0], but how can i jump to the back of the array when all i have to access...
March 24th, 2010, 08:12 PM
I'm not worried about the loop, I can do that.
I'm just worried about how to get these pointers to point to something else then just the first cell of each array.
Talked to a friend of mine, he...
March 24th, 2010, 07:21 PM
(ArrayOfPtrs[2]+numDigits) = (ArrayOfPtrs[0]+numDigits) + (ArrayOfPtrs[1]+numDigits)
i tried that, stupidly...error was can't add pointers
so then i tried this
(ArrayOfPtrs[2]+numDigits) =...
March 24th, 2010, 06:54 PM
Hello, writing out some code for a project for college and ran into a rut.
I have an Array of Pointers :
int * ArrayOfPtrs[3];
ArrayOfPtrs[0] = firstIntPtr;
ArrayOfPtrs[1]...
February 21st, 2010, 08:33 PM
Yeah I considered that theory too about how maybe there was a problem with the arrangement of the N S W & E within the array. But I actually went through each maze, from the assigned starting point,...
February 21st, 2010, 07:17 AM
Thanks for that suggestion. I never have thought of or used the debugger till now. WOW am I glad I did.
So here's what I've gathered so far.
1) My "if else" statements work like they are...
February 20th, 2010, 09:31 PM
Hey I have a problem with my program that I am writing up.
Basically the program reads in several mazes in a 2D array and assigns each cell of the array a N S W or E ( North South West or East).
...
November 4th, 2009, 10:46 PM
Wow... that really is simple... Thanks so much!
November 4th, 2009, 07:06 PM
Don't need to handle floating point numbers. Just real numbers ( whole numbers). - is for a negative not a digit.
November 4th, 2009, 05:55 PM
Hey I need help writing a function that will count the number of digits in any given number.
I got it to count the digits for positive numbers just fine. But at the moment I've hit a wall and can't...