Ascending Cirles Radius

Im supposed to create an to array of eight Circle objects initialized with the following radii: 2.5, 4.0, 1.0, 3.0, 6.0, 5.5, 3.5, 2.0. Then use a bubble sort to arrange the objects in ascending order of radius size before displaying the area of each object.

Heres my program which gets all sorts of errors
Am I at least on right direction any help will be much appreciated!
Thanks,

Code:
#include <iostream>
#include <iomanip>
#include "Circle.h"// Needed to create Circle objects
#include "stdafx.h"
using namespace std;

const int NUM_CIRCLES = 4;

int main()
{
// Define an array of 4 Circle objects. Use an initialization list
// to call the 1-argument constructor for the first 3 objects.
// The default constructor will be called for the final object.
Circle circle[NUM_CIRCLES] = {2.5,4.0,1.0,3.0,6.0,5.5,3.5,2.0};

// Display the area of each object
cout << fixed << showpoint << setprecision(2);
cout << "\nHere are the areas of the " << NUM_CIRCLES
<< " circles.\n";

for (int index = 0; index < NUM_CIRCLES; index++)
{ cout << "circle " << (index+1) << setw(8)
<< circle[index].findArea() << endl;
}
return 0;
}
Topic archived. No new replies allowed.