User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 402,480 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,813 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums

HELP me as soon as possible ..!

Join Date: Sep 2004
Posts: 6,068
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 26
Solved Threads: 419
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: HELP me as soon as possible ..!

  #6  
May 6th, 2005
>How can I fix this problem ,plz ??
You fix the problem by taking my advice:
Originally Posted by Narue
You seem to have trouble with pointers, so I would suggest using arrays instead for any project.
When comparing strings you use strcmp, you've got that part down. When copying strings, you use strcpy. Your problem is that you're dereferencing an array, which gives you the first element of the array. You're basically sorting the first character of the strings rather than the whole strings.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
Reply With Quote  
All times are GMT -4. The time now is 4:46 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC