CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: I Hate Pointers

Threaded View

  1. #3
    Join Date
    Mar 2009
    Posts
    13

    Re: I Hate Pointers

    A char* is not the same as a string. A char* doesn't has a size function. A char* is a pointer to a array of characters, nothing more. Use strlen to get the length of your text.
    really, will the loop in the function still work if I change the variables to Strings instead of arrays?


    'Reverse' points to the first character, and you are taking to content of that character. It should look something like this.

    can I have two variables in a loop? how would that look?
    Last edited by ArmlessBastard; April 2nd, 2009 at 05:26 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured