I am only getting the 1 error "function does not take 1 arguments mean?" on my bubblesort algorithm.
what does this mean?!
i believe the bit its having trouble with is line
where i call my function bubblesort to work on array A[]Code:bubblesort(A);
but just incase, here is my top part
and my function at the bottomCode:#include <iostream> using namespace std; const int numberofintegers=1000; int G=0; void bubblesort(int A[], int G); int A[numberofintegers];
im sorry if this isnt a correct way to post, im new, but any help you could give me would be greatly appreciated. thanks.Code:void bubblesort(int A[], int G){ int Q, W, E; for (int Q=0; Q<G; Q++){ for (int W=0; W<G-1; W++){ if (A[W+1]<A[W]){ E = A[W+1]; A[W+1]=A[W]; A[W]=E; } } } }



LinkBack URL
About LinkBacks


