|
-
April 2nd, 2009, 05:18 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|