Karl Blessing
Programmer
I have some code given to me by a friend, and I'm just going thru it and cleaning it up and such, the declarations go by just fine, but there is this one line of code that says
Type name expected
I am using Borland C++ 5.02 since that allows the namespace type of declaration (no .h)
the line that has that error is
this is the structure of that "resident_record"
Any clues?
I dont know much about vectors, or vector classes, but looking up the syntax it seems right, I just havent found any examples using a structure as the type name.
Thanks Karl Blessing aka kb244{fastHACK}
Type name expected
I am using Borland C++ 5.02 since that allows the namespace type of declaration (no .h)
the line that has that error is
Code:
vector<resident_record> RESIDENT_DB;
this is the structure of that "resident_record"
Code:
struct resident_record
{
string first_name;
string last_name;
string ss_no;
int apt_no;
string birthday;
string phyiscian;
string closest_relative_first_name;
string closest_relative_last_name;
int rent;
int months_behind;
string move_in_date;
string medical_insurance_company;
};
Any clues?
I dont know much about vectors, or vector classes, but looking up the syntax it seems right, I just havent found any examples using a structure as the type name.
Thanks Karl Blessing aka kb244{fastHACK}
