I have this code at the beginning :
#include<iostream>
using namespace std;
struct mehmandar{
    char name[30];
    char last_name[30];
    long national_code;
    long personal_code;
    date birthday;
    date employ_date;
    mehmandar * nxt;
};
struct time{
    int hour;
    int min;
};
struct flight{
    long flight_serial;
    long plane_serial;
    char from[30];
    char to[30];
    int traveller_num;
    char pilot_name[30];
    char pilot_lastnam[30];
    mehmandar* mehmandar_majmue=NULL;
    long total_price;
    time flight_time;
    flight * nxt;
};
int main() {
    flight* temp=new flight;
    cin >>temp->flight_time.hour;
    return 0;
}
but then I get the error that struct flight has no member flight_time for main part and time does not name a type in the struct flight part.
 
     
    