|
-
January 21st, 2005, 12:36 PM
#7
Re: string manipulation
Assuming your class is using char * (you didn't want to use the string class) than each letter in the string can be pointed to rather easily
assuming: char myStr[7] = "my name";
then you can point to the first letter using myStr[0], and the nth letter in the string with myStr[n-1]. This should help you rearrange your letters but it is your homework.
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
|