Hey people I am having an issue with structs and hopeing someone could help me out...
The code i have writen is as follows....
// Define local variables
listing title ;
// Read in from file
in.get (entry.fullname.firstname, 15, ';');
in.get (entry.fullname.middleinitial, 3, ';');
in.get (entry.fullname.lastname, 15, ';');
in.get (entry.title, 31, ';');
in.get (entry.phone, 15, ';');
in.get (entry.officenum, 11, '\n');
The problem i am haveing right now is with the last 3 in.get where im trying to put data into the title, phone, and officenum. for some reason i cant even compile with those as they are.
I dont know if im calling to the struct variables properly... im jsut confused because i have the top 3 working right... and i thought i had the form the same.
also, one other quick question about structs... can i take a struct (that is created via user input) and export the entire struct to a file?
any help will be most welcome!!!!!