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)...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.