QUOTE(mistic857 @ 3 Dec, 2006 - 04:04 PM)

QUOTE(chris.tkd @ 3 Dec, 2006 - 07:59 AM)

its probably printing out the memory addresses, try creating your structure outside the main function. also remember that computers count from 0 so you may have to print to length-1.
We have to keep within the main,
Thanks....
I will try the length- to see what happens.
I thought maybe I had to declare the amount of items or something silly.
if the structure represents a School with up to 100 courses etc and as you are using C++ I would have thought the arrays would be arrays of string rather than arrays of char, e.g.
CODE
struct schedule
{
int sch_num[100];
string course_name[100];
string course_sec[100];
string course_meeting[100];
string course_room[100];
}school;
or does each structure represent a course, if so should it be
CODE
struct schedule
{
int sch_num;
string course_name;
string course_sec;
string course_meeting;
string course_room;
}course;
I think it would help if you gave us the spefification of what you are trying to do