CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: MSwezey

Search: Search took 0.01 seconds.

  1. Thread: Pointers

    by MSwezey
    Replies
    8
    Views
    989

    Re: Pointers

    Ohhh okay! That makes perfect sense!

    Thank you for laying it out like that for me! :)
  2. Thread: Pointers

    by MSwezey
    Replies
    8
    Views
    989

    Re: Pointers

    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...
  3. Thread: Pointers

    by MSwezey
    Replies
    8
    Views
    989

    Re: Pointers

    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...
  4. Thread: Pointers

    by MSwezey
    Replies
    8
    Views
    989

    Re: Pointers

    (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) =...
  5. Thread: Pointers

    by MSwezey
    Replies
    8
    Views
    989

    Pointers

    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]...
  6. Replies
    6
    Views
    1,083

    Re: Looping issues?

    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,...
  7. Replies
    6
    Views
    1,083

    Re: Looping issues?

    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...
  8. Replies
    6
    Views
    1,083

    Looping issues?

    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).
    ...
  9. Thread: Code Help

    by MSwezey
    Replies
    4
    Views
    859

    Re: Code Help

    Wow... that really is simple... Thanks so much!
  10. Thread: Code Help

    by MSwezey
    Replies
    4
    Views
    859

    Re: Code Help

    Don't need to handle floating point numbers. Just real numbers ( whole numbers). - is for a negative not a digit.
  11. Thread: Code Help

    by MSwezey
    Replies
    4
    Views
    859

    Code Help

    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...
Results 1 to 11 of 13





Click Here to Expand Forum to Full Width

Featured