creating 5 myfloat objects and 5 myname objects and sorting

Hey i have to create a program by creating 5 myfloat objects and 5 myname objects and sort them using a template function. Where you see question marks in the program are the ones i need to replace with code. Can someone tell me where to start and how the program should look like. I'd greatly appreciate it.

here is the template:

#include <iostream>
#include <string>
using namespace std;

class myFloat
{
float x;
float y;
public:
myFloat ();
myFloat (?, ?);
void setX(?);
void setY(?);
? getX();
? getY();
ostream friend & operator<<(ostream ?, ?);
bool operator>(?); // compare two objects in the order of x
};
class myName
{
string fn;
string ln;
public:
myName();
myName(string, string);
void setF(string);
void setL(string);
string getF();
string getL();
ostream friend & operator<<(ostream &, myName);
bool operator>(myName); // compare two objects in the order of last name then first name
};
? // complete the above two classes definition.
template <?>
void bubblesort(?,?)
{
? // complete the function definition
}

int main()
{
? // create 5 myFloat objects with initial values.
int i;
cout << "before sort\n";
? // print out the objects to screen
? // sort the objects
cout << "\nafter sort\n";
? // print out the objects to screen again

? // create 5 myName objects with initial names.
cout << "before sort\n";
? // print out the objects to screen
? // sort the objects
cout << "\nafter sort\n";
? // print out the objects to screen again

return 0;
}
Looks like beginner homework. If you are given homework, the assumption is that you have already been given sufficient information about the tasks that you have to do in the homework. You have listened to the teacher and read all the course material, yes?

Therefore, you do know types, classes, functions, and templates. Now, use everything that you know to write as much as you can. Learn by doing. Then show the result. Someone might be willing to comment then.

Use of code tags makes code more readable here.
thank you
Topic archived. No new replies allowed.