Помогите ПРОГРАМИРОВАНИЯМ что не так написал?
#include
using namespace std;
class persona
{
public:
char Name [10];
int year;
int sex;
int print ()
{cout<
DB.print ();
}
#include
using namespace std;
class persona
{
public:
char Name [10];
int year;
int sex;
int print ()
{cout<
DB.print ();
}
int main ()
{
persona obj1;
obj1.year=1980;
obj1.sex=1;
strcpy(obj1.Name,"Ivankiv.M.G");
persona obj2;
obj1.year=1990;
obj1.sex=1;
strcpy(obj1.Name,"Formon.M.G");
persona DB[2]
DB[0]=obi1;
DB[1]=obj2;
for(int i=0; i<1; i++)
if (DB.year==1980)
DB.print ();
}