Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
bubblesort
- Page 1
Re: Please Help me with this simple C program problem?
Programming
Software Development
14 Years Ago
by pkim
bubblesort
Repost of Bubblesort error, wont debug
Programming
Software Development
16 Years Ago
by guystangr
bubblesort
will not work for me [CODE] [COLOR=#008000] //Laura Patrick //…
Re: Repost of Bubblesort error, wont debug
Programming
Software Development
16 Years Ago
by iamthwee
>
bubblesort
will not work for me Well what have you tried to do about it? Maybe a try putting a few couts here and there?
Re: Templates -- Need major help please!!
Programming
Software Development
16 Years Ago
by balla4eva33
… <typename T> void
bubbleSort
(miniVector<T> &arr) { int i, j; T …
Re: Problem with function arg pointer syntax
Programming
Software Development
17 Years Ago
by Narue
… need to index one of the countries first: [code]
BubbleSort
( Array[x], n_cities );[/code] However, since the parameter… and the variable declarations match: [code] void
BubbleSort
( [COLOR="Blue"]const char *array[][/COLOR] , …] All you need is the name: [code]
BubbleSort
( Array, ArraySize );[/code] Ne? :)
BubbleSort
Programming
Software Development
12 Years Ago
by drew99
I've made some changes to the algorithm
BubbleSort
, dividing the array to be ordered in n array consisting …
BubbleSort class
Programming
Software Development
14 Years Ago
by javaman2
… is similar to the class SelectionSort. The class
BubbleSort
will be used in the same way as the …. This is my code so far [CODE=syntax]public class
BubbleSort
{ public void sort(double[] a, int n) { for(int…, 4.2, 2.6, 5.8, 5.9};
BubbleSort
good = new
BubbleSort
(); System.out.println("Numbers before sorting."); for…
Re: BubbleSort class
Programming
Software Development
14 Years Ago
by blumen
…8, 5.9};
BubbleSort
bs = new
BubbleSort
(); System.out.println("…quot;); System.out.println(); bs.
bubbleSort
(a, a.length); System.out…quot;); System.out.println(); } public void
bubbleSort
(double[] a, int n) { for(…
Re: BubbleSort class
Programming
Software Development
14 Years Ago
by BestJewSinceJC
Do a web search -
BubbleSort
is a very common algorithm. You won't have trouble finding hundreds of Java code examples. Compare them to what you have and you'll see what sections you need to implement. If you're still confused at that point, then come ask.
Re: BubbleSort class
Programming
Software Development
14 Years Ago
by javaman2
well im trying to run the driver program but i get an error message that says it cant find the symbol class
BubbleSort
in line 7 of the driver program any ideas im also finding many of the codes are using a nested for loop but i need to use the example i gave with the for and if statement in my class how can i make my class with that example
bubblesort problem
Programming
Software Development
14 Years Ago
by mebob
hi, i created a program to use
bubblesort
to sort numbers in an array, but …lt; l; i++ ) { cout << in[i]; } } void
BubbleSort
( int *in, int l ) { int n = l - 1; int …} } int main() { int array[5] = {23,11,65,34,1};
BubbleSort
(array,5); PrintArray (array,5); cin.get(); } [/CODE] can someone…
BubbleSort and Structures?
Programming
Software Development
10 Years Ago
by every1play
…HighscoreSort { public: HighscoreSort(void); ~HighscoreSort(void); void
bubbleSort
(int data[], int length); }; #include "HighscoreSort…void) { } HighscoreSort::~HighscoreSort(void) { } void HighscoreSort::
bubbleSort
(int data[], int length) { for(int iter = 1…
Re: BubbleSort Problem...
Programming
Software Development
14 Years Ago
by VernonDozier
…! what i cant understand is i have called the method
bubblesort
by:
bubbleSort
(studTranArray, sortArray); but how can obtain the sorted list… like you had it before too). [code] public static void
BubbleSort
(ArrayList<studentClass> originalList, ArrayList<studentClass> sortedList…
Re: bubblesort problem
Programming
Software Development
14 Years Ago
by mebob
alright, i ran into another problem. the array doesnt get changed by the
bubblesort
function. i know its probably an obvious solution, but i am very oblivious.
Re: BubbleSort and Structures?
Programming
Software Development
10 Years Ago
by sepp2k
> Now i wanted it to sort using
bubblesort
and structures. Why? Unless you have a very goood reason …
Re: BubbleSort Problem...
Programming
Software Development
14 Years Ago
by Evil_genius82
Ok thanks VernonDozier for the advice! what i cant understand is i have called the method
bubblesort
by:
bubbleSort
(studTranArray, sortArray); but how can obtain the sorted list? Sorry if its a dumb question, but im very new to programming...bare with me.
BubbleSort Problem...
Programming
Software Development
14 Years Ago
by Evil_genius82
… sortby is set to "id" [ICODE] private void
bubbleSort
(ArrayList<studentClass> sortedList, String sortBy) { //start with the…
Re: BubbleSort Problem...
Programming
Software Development
14 Years Ago
by Josh_Hcq
Hey, i think VernonDozier has answered your problems just right, but can i ask why you're using
bubblesort
? its a good method, but i'd recommend you to try out quicksort or mergesort, they're highly efficient.
Re: BubbleSort Problem...
Programming
Software Development
14 Years Ago
by Evil_genius82
Hey guys, it seems i didnt need an arraylist at all as i could add Objects direct to defaultListModel. Then if should be much easier to sort. The reason why im using
bubblesort
is thats what is required for the assignment :( I will update you if everything goes to plan. Guys thanks for your time and help.
Re: BubbleSort Problem...
Programming
Software Development
14 Years Ago
by VernonDozier
… be much easier to sort. The reason why im using
bubblesort
is thats what is required for the assignment :( I will…
Bubblesort & strings
Programming
Software Development
12 Years Ago
by Butum
Hello again guys, I've created a
bubblesort
function to sort a string in chronological order, it is …
Re: Bubblesort & strings
Programming
Software Development
12 Years Ago
by Butum
… actual player but first I want to make sure the
bubblesort
actually works. How do I return that sorted function to…
Re: bubblesort array of double: output problem
Programming
Software Development
13 Years Ago
by Fbody
… template <typename T> void DataSet<T>::
BubbleSort
() { for (int i = 0; i < m_DataSet.size(); ++i) { //establish… set } //end for (index i) } //end DataSet<T>::
BubbleSort
()[/CODE]
Re: bubblesort array of double: output problem
Programming
Software Development
13 Years Ago
by ohsevenfiveoh
… "temp" instead of "t" inside my
bubblesort
. it has everything coming out as doubles which is great…
Re: bubblesort array of double: output problem
Programming
Software Development
13 Years Ago
by Fbody
… "temp" instead of "t" inside my
bubblesort
[/B] Good. [B]>>...the highest number is omitted…
C++ Bubblesort
Programming
Software Development
11 Years Ago
by nekoleon64
…= current->link; } return outfile; } void
bubblesort
(int mylist[], int numitems) { int temp; int iteration…= current->link; } return outfile; } void
bubblesort
(int mylist[], int numitems) { int temp; int …
Re: C++ Bubblesort
Programming
Software Development
11 Years Ago
by nekoleon64
…. Also I still haven't done anything about the void
bubblesort
I have to use pointers on it. void…
bubblesort
(int mylist[], int numitems) { int temp; int iteration; int index; …
Re: C++ Bubblesort
Programming
Software Development
11 Years Ago
by nekoleon64
…;< " "; current = current->link; } return outfile; } void
bubblesort
(int mylist[], int numitems) { int temp; int iteration; int index… is that I also have to make sure the void
bubblesort
also uses pointers as well. And I need to know…
Re: C++ Bubblesort
Programming
Software Development
11 Years Ago
by nekoleon64
Now it just says D://
BubbleSort
/..... Line 63 warning unused variable head_ptr and newNode I gotta …
Re: C++ Bubblesort
Programming
Software Development
11 Years Ago
by nekoleon64
That's right I almost forgot, I need to change void
bubblesort
above so that it uses pointers. I need some help with that.
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC