Dear all,
I have written a program in c++ to pass arrays of objects(belonging to the same class) to a member function. It works fine in VC++ but gives an error as "Undefined structure class name". My program is a larger one. So i am giving a similar code below. Pls help me. Your replies are highly appreciated. Thanking you.
#include <iostream.h>
#include <conio.h>
class test
{
int k;
public:
void fun(test t[])
{
cout<<"Test program....";
}
};
void main()
{
test t;
test r[2];
t.fun(r);
getch();
}
Regds,
Beuls