kes166 37 Practically a Master Poster

Ok, I'm a bit out of practice, so if I'm incorrect in my information, it would be helpful if someone corrected me here.

It looks like you need to add a new node onto the linked list with the student name, the university, and the id. That is what you will need to pass to the fuction of the linked list class.

void add(string student, sting university, int id){
...
}

Once you have the information passed to the function, create the node, add the information into the node, point the previous nodes next pointer to the new node, and point the current node's point to EOF, null, or whatever.

Edit:

What does your .h file look like for this class?

kes166 37 Practically a Master Poster

Alt + F3?

http://msdn.microsoft.com/en-us/library/0zz35x06(VS.80).aspx

Or maybe Ctrl+K, Ctrl+L?

http://www.codeproject.com/KB/tips/VSnetIDETipsAndTricks.aspx

That's all I could find.

kes166 37 Practically a Master Poster

What would happen if index <= 1 ?

cout << "Please, choose the speaker's index that you'd like to add info to, 1-10: ";
cin  >> index;

You'd need a while loop to catch if it were less than one or greater than 10. If it were one, index - 1 would be 0 which would reference the correct location in the array. If index was -2 then the while loop would catch it and ask for a new input.

Edit:

Similar to this code

while (choice < 1 || choice > 4){
cout << "Please, enter a valid choice number, 1-4: ";
cin  >> choice;
kes166 37 Practically a Master Poster

Can't you just get rid of all the if statements, and use

cin >> sp[index - 1].name >> endl;
//etc ...

And then the same concept for the viewSpeaker?

kes166 37 Practically a Master Poster

Guys, I got an error with the following code:

struct myStruct {
           int myVar1;
      };

      class A { //definition of A
         ...
      };
struct myStruct {
           int myVar1;
      };

      class B { //definition of B
         ...
      };
struct myStruct {
           int myVar1;
      };

      class C { //definition of C
         ...
      };

You are declaring myStruct multiple times in seperate files. You need to put myStruct in a header (explained earlier) or format the code together

struct myStruct{
     //foo
};

Class A {
     //foo
};

Class B {
     //foo
};

Class C {
     //foo
};

Are you using myStruct from main or only in the classes? It's been awhile since I actually coded, but I think you can declare the struct as private and keep the classes seperate in different files as well. I'm not 100% certain of the syntax for that though.