Important alert: (current site time 7/15/2013 6:19:22 PM EDT)
 

winzip icon

Use Bubble Sort Logic In File Sorting Program

Email
Submitted on: 5/2/2005 4:04:37 AM
By: Pinky Desai 
Level: Beginner
User Rating: By 13 Users
Compatibility: C++ (general)
Views: 16691
 
     Use bubble sort logic in file sorting program as Bubble sort method for sorting is efficient than Linear sorting method. This program is used for novice users in C++ for sorting contents of the file. Thanks for accessing this code. If you find this program is useful to you, then acknowledge me by giving your valuable vote.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

5/2/2005 11:48:04 AMBrenton Andrew Saunders

Nice code. This is more than useful for my next big software. 5 out of 5 from me!
(If this comment was disrespectful, please report it.)

 
5/3/2005 3:17:00 AMNishidh Patel

Nice Code....
Thanks for sharing
(If this comment was disrespectful, please report it.)

 
5/3/2005 4:24:39 AMManas Ranjan Sahu

very nice program for a beginner.
nicely done.
good programming skills.
followed naming conventions.
keep programming and submitting on PSC.

(If this comment was disrespectful, please report it.)

 
5/7/2005 4:30:55 AM

Thanks for uploading, I get the exact thing for my termwork submission. Thanks again.............
(If this comment was disrespectful, please report it.)

 
5/13/2005 1:18:55 AMRavimintu

Excellent Coding Strategy, and use of logic. Thanks...
(If this comment was disrespectful, please report it.)

 
5/19/2005 1:55:03 AM

Good logic applied..... good for beginners
(If this comment was disrespectful, please report it.)

 
5/23/2005 2:19:14 AM

Nicely done, but upload something seems to be healthy code...
(If this comment was disrespectful, please report it.)

 
5/23/2005 2:30:59 PM

good code for beginners

(If this comment was disrespectful, please report it.)

 
5/23/2005 2:41:37 PM

Good Code.Nice Work
(If this comment was disrespectful, please report it.)

 
5/25/2005 9:51:20 PMC++ Guru

This code barely deserves one globe.Use of deprecated headers, void main() (never was and never will be legal c or c++),public data in classes,poor choice of sorting algorithm,and the largest function I have seen in ages all add up to make this very poor code indeed.
(If this comment was disrespectful, please report it.)

 
6/4/2005 5:31:44 AM

Thanks ....
(If this comment was disrespectful, please report it.)

 
7/6/2005 3:19:26 AM

Nice code, I need seme code in c,please help regarding this.
thanks
(If this comment was disrespectful, please report it.)

 
7/6/2005 3:20:21 AM

Nice code. I need same code in c. Please help regarding this.
Thanks
(If this comment was disrespectful, please report it.)

 
7/22/2005 6:52:29 AMMike Carson

The code looks okay, but I don't know why you would use this in lieu of just calling the sort() method from C/C++. That uses the Quicksort algorithm which is O(lg n), and Bubble sort is O(n^2). In layman's terms, Bubble sort is pretty slow compared to Quicksort.

Mike
http://www.coolgroups.com/
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.