Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: KT927
  • Order by date
  1. KT927

    using recursion to output to file

    I'm using recursion to output array to text file. Thanks for the help. Here is code. I'm only getting the last number in the text file. What do I need to fix? KT File_Array_Recurs(int Array[], int size) { ofstream outi("data4.txt") if(size>=0) File_Array_Recurs(Array, size -1)...
  2. KT927

    QuickSort :

    Third times a charm. Let's try this again. void Swap (float&x, float&y) { float temp; temp = x; x = y; y = temp; } int Partition(float kArray[], int first, int last) { float Pivot = kArray[first]; int left = first; int right = last...
  3. KT927

    QuickSort Problems

    I hate that this keeps happening. Let's try this again. KT927 void Swap (float&x, float&y) { float temp; temp = x; x = y; y = temp; } int Partition(float kArray[], int first, int last) {...
  4. KT927

    QuickSort Problems

    Here is the updated and neatly typed code. I'm not sure what is missing or what is correct. KT927 void Swap (float&x, float&y) { float temp...
  5. KT927

    Help with QuickSort

    I am currently trying to use a quicksort on an array already created in a file. I'm having some difficulty. I'm not sure how I output the QuickSort. I know I need the Function header in my main and in the header file. I know the function needs a cout statement, but I'm not sure how. The...

Part and Inventory Search

Back
Top