Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: String Change

Started 1 month, 2 weeks ago by Zoalm*77
Could somebody help me with this. I did not succeed doing it!!! here it is : Write a function called reverseit() that reverses a C-string (an array of maximum 80 char elements). Use a for loop that swaps the first and last characters, then the second and next-to-last characters, and so on. The string should be passed to reverseit() as an argument. Write a program to exercise reverseit(). ...
Site: CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions  CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions - site profile
Forum: Visual C++ Programming  Visual C++ Programming - forum profile
Total authors: 4 authors
Total thread posts: 5 posts
Thread activity: no new posts during last week
Domain info for: codeguru.com

Other posts in this thread:

Joeman replied 1 month, 2 weeks ago
whats the problem? what do you have done?

acerunner316 replied 1 month, 2 weeks ago
somethign like this? i'll let you figure out how to take in a string and find the length. for (i=0; i<Length/2; i++) { tempchar = myString[i]; myString[i] = myString[Length-1-i]; myString[Length-1-i] = tempchar; }

Zoalm*77 replied 1 month, 2 weeks ago
ohhhh ok !! thanks a lot!

cilu replied 1 month, 2 weeks ago
Quote: Originally Posted by Zoalm*77 Could somebody help me with this. I did not succeed doing it!!! here it is : Write a function called reverseit() that reverses a C-string (an array of maximum 80 char elements). Use a for loop that swaps the first and last characters, then the second and next-to-last characters, and so on. ...

 

Top contributing authors

Name
Posts
Zoalm*77
2
user's latest post:
String Change
Published (2009-11-13 23:20:00)
ohhhh ok !! thanks a lot!
acerunner316
1
user's latest post:
String Change
Published (2009-11-13 19:54:00)
somethign like this? i'll let you figure out how to take in a string and find the length. for (i=0; i&lt;Length/2; i++) { tempchar = myString[i]; myString[i] = myString[Length-1-i]; myString[Length-1-i] = tempchar; }
Joeman
1
user's latest post:
String Change
Published (2009-11-13 19:16:00)
whats the problem? what do you have done?
cilu
1
user's latest post:
String Change
Published (2009-11-15 12:59:00)
Quote: Originally Posted by Zoalm*77 Could somebody help me with this. I did not succeed doing it!!! here it is : Write a function called reverseit() that reverses a C-string (an array of maximum 80 char elements). Use a for loop that swaps the first and last characters, then the second and next-to-last characters, and so on. The string should be passed to reverseit() as an argument. Write a program to exercise reverseit(). The program should...

Related threads on "CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions":

Related threads on other sites:

Thread profile page for "String Change" on http://www.codeguru.com. This report page is a snippet summary view from a single thread "String Change", located on the Message Board at http://www.codeguru.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity