PSP Hacks - Forums

Go Back   PSP Hacks - Forums > Tech Talk > PC Programming

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 06-01-2009, 11:15 PM
spartin268 spartin268 is offline
PSP Enthusiast
 

Join Date: Jan 2008
Posts: 403
spartin268 is on a distinguished road
Default

Well everytime i am finished with something, something new always comes up.
Well i asked my teacher if i was done, and he was like no you finshed too fast i think your ready for a C++ project.

My project is creating a really crappy phonebook, where the user inputs the amount of names they are entering.
Then the names it self.
After that your suppose to rearrange those names by the LAST letter of the name.
Say you entered two names
Genesis, Zack, and Sephiroth
Normally you would output it through the first letter style order like....
Genesis, Sephiroth, than Zack.
INSTEAD its suppose to be by the last letter so.....
Sephiroth, Zack, than Genesis.

So far I got up tro the part where you have to type in the names or input.

But this is where i get stuck, how am i suppose to declare the same amount of char (String) variables as the number the user inputted?

&&

How am i suppose to rearrange them by the last letter?
I was thinking using somekind of IF statement, but i truely have no idea.

Thanks Alot! Please ask if you need clarification!
__________________

Embrace your dreams, and always protect your soldier honour!
Which Final Fantasy Character Are You?
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:08 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©