Can anyone tell me what is this, to me it look like struct in a struct, if I were to write the OOP program to sort an array 5 of these object variables, where would I start?? What will be the out put should look like?? Can someone give an example???? Istart out then :icon_confused:
#include <iostream>
#include <string>
using namespace std;
void sort(object* arr, int num);
int mian()
{
struct object
{
bool (*compare) (object first, first, object second);
void (*display) (object in);
union
{
int intVal;
char* strVal;
};
};
cin.get();
return (0);
}