Hey all. I have worked on this in a previous post, but because of the huge difference in work needed, i have reposted it here.
First off, i created a project that would input data from keyboard of a student, this student had name,ssn,dob,school id information that was needed. After inputting this data, you could add classes for this singly student... into an array of objects that included (course name, course semester, course year, and course grade). having done this with a basic array, i had set the array to be size 10 (very limiting if student has, say 11 classes!). Sooo..
For our second project we have to do a linked list of the course objects. Therefore, we can add classes to a single student for as long as we have the memory to store it all!
Here is an error i am getting in my class definition for the student (declaring a linked list):
1>driver.cpp
1>c:\users\tony\documents\visual studio 2008\projects\project2\student.h(27) : error C2143: syntax error : missing ';' before '<'
1>c:\users\tony\documents\visual studio 2008\projects\project2\student.h(27) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\tony\documents\visual studio 2008\projects\project2\student.h(27) : error C2238: unexpected token(s) preceding ';'
1>Student.cpp
1>c:\users\tony\documents\visual studio 2008\projects\project2\student.h(27) : error C2143: syntax error : missing ';' before '<'
1>c:\users\tony\documents\visual studio 2008\projects\project2\student.h(27) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\tony\documents\visual studio 2008\projects\project2\student.h(27) : error C2238: unexpected token(s) preceding ';'
This is using Visual Studio Pro 2008.
I will post all needed .h and .cpp files that are in the project. I had split them up for ease of read purposes, and per class requirements.
Please could someone explain what this error means? Am i declaring it incorrectly? Have i made a mistake elsewhere?
I have more questions to follow - but first off it would be good to get my linked list defined correctly first!
Thanks all
PS - the SinglyLinkedList.h file is the newest 'addition' to my project - i had this all working flawlessly previously (besides im sure my quirky programming!!!!)