Re: Please Help me with this simple C program problem? Programming Software Development by pkim bubblesort Repost of Bubblesort error, wont debug Programming Software Development by guystangr bubblesort will not work for me [CODE] [COLOR=#008000] //Laura Patrick //… Re: Repost of Bubblesort error, wont debug Programming Software Development 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 by balla4eva33 … <typename T> void bubbleSort(miniVector<T> &arr) { int i, j; T … Re: Problem with function arg pointer syntax Programming Software Development 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 by Fbody … "temp" instead of "t" inside my bubblesort[/B] Good. [B]>>...the highest number is omitted… C++ Bubblesort Programming Software Development 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 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 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 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 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.