Răspuns:
#include <iostream>
using namespace std;
#define MAX_LENGTH 100
int main()
{
char name[MAX_LENGTH]={0};
int age;
cout<<"Introduceti nume: ";
cin.getline(name,MAX_LENGTH);
cout<<"Varsta: ";
cin>>age;
if(age>=18)
{
cout<<"Matur +18"<<endl;
}
else
{
cout<<"Persoana Minora"<<endl;
}
return 0;
cout<<"Nume: "<<name<<endl;
cout<<"Varsta: "<<age<<endl;
return 0;
}