hostal management system

hello everyone i have worked on the part that comes before void main() plz some one check this out weither i am doing it right or not please..
#include<iostream.h>
#include<conio.h>
struct address
{
char country_name[30], province_name[30],city_name[30], street[30];
int street_no,h_no;
};
struct student
{
char first_name[30],last_name[30];
int student_id;
char address d;
long cell_no;
};

struct room
{

int room_number;
int floor;
char status;

};
struct allocation
{
int student_id;
int room_number;
int floor;
int date_of_allotment
int date_of_leaving;
};

struct visitor
{
int total_number_of_visitors_each_day;
char name_of_visitor[30];
char student id;
float in_time;
float out_time;
};

struct in_out
{
char student_id;

int room_number;
float in_time;
float out_time;
long cell_no;
};
{
Address d;
student s;
room r;
allocation a;
visitor v;
in_out io;
int i,j;
char ampm1,ampm2;
}
{
void input_student_info();
void show_student_info();
void input_room_info();
void show_room_info();
void input_allocation_info();
void show_allocation_info();
void input_visitor_info();
void show_visitor_info();
void input_in_time_info();
void show_in_time_info();
void input_out_time_info();
void show_out_time_info();
void displayAddmissionRecords();
void displaypermanantreturnRecords();
someone please check this out
What is right and what is wrong depends what you are trying to do

So what are you trying to do ?

from what I see
char address d; is wrong, maybe it should be address d;

1
2
3
4
5
6
7
8
9
10
{
Address d;
student s;
room r;
allocation a;
visitor v;
in_out io;
int i,j;
char ampm1,ampm2;
}


and why do you put bracket in this code ?
I doesn't mean anything to the compiler IMO

oh yes this was a mistake thanks for pointing it out... i'm trying to make a hostal management system using structures,functions and file handling... i'm a student and this is my assigment
C:\dasdasff.cpp(153) : error C2447: missing function header (old-style formal list?)

any bodyy what is this error plz tell how to remove this plzzzz
Without seeing the code that's generated this error, we can't possibly know what's wrong.

Why are you spamming this question to multiple threads?
Topic archived. No new replies allowed.