Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-13-2007, 10:37 AM
0eraser 0eraser is offline
Newbie
 
Join Date: May 2007
Posts: 3
Rep Power: 0
0eraser is on a distinguished road
Default Bubble sorting a list

Well - how exactly would that work? Would you have to go through all of the elements? I have some ideas in my head ,but could someone just help me out a bit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 06-13-2007, 10:47 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 2,034
Last Blog:
NaNoWriMo Day 23 The...
Rep Power: 24
WingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the rough
Default

You would need a nested for loop that repeatedly goes through all the elements. If you are using C++, you are better off using the built in sorting routines for container classes.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mail to a group of people (Mailing list support/Emulation) nesrait easyContact 1 07-25-2007 08:48 PM
Finding non-standard sorting order via graph theory elle General Programming 1 05-17-2007 09:36 PM
Binary to list?? TAboy24 C and C++ 3 05-03-2007 08:40 AM
Sorting String ( Need help ASAP) Gordack C and C++ 4 04-20-2007 11:12 AM
GMail Vulnerable To Contact List Hijacking TcM Computer Software/OS 28 02-17-2007 10:36 AM


All times are GMT -5. The time now is 09:52 PM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 65%

Ads