this is what I did and it is showing errors. Please correct the mistakes
#include <iostream>
#include <string>
using namespace std;
class Student
{
public:
int ID;
string FirstName;
string College;
string Major;
double GPA;
Student*Friends;
Student*next;
Student();
Student(int id1, string FirstName1, string College1, string Major1, double GPA1);
CreateList(Node*& head, int n)
bool FindFriendship(int a, int b);
};
Student::Student()
{
int ID=0;
string FirstName=" ';
string College=' ';
string Major=' ';
double GPA=0;
friends=NULL;
next=NULL;
}
Student::Student(int id1, string FirstName1, string College1, string Major1, double GPA1)
{
int id=id1;
string FirstName='FirstName1';
string College='College1';
string Major='Major1';
double GPA=GPA1;
}
void Student::CreateList(Student *&h, int n)
{
void Create(Node*& head, int n)
{
AddHead(h, "Sara", 1, "College of computer engineering and science", "Information Technology", 3.25);
AddHead(h, "Hiba", 2, "College of Engineering", "Interior Design", 2.7);
AddHead(h, "Lujain", 3, "College of Business Administration", "MIS", 3.01);
AddHead(h, "Amna", 4, "College of Arts and Sciences", "Law", 3.68);
AddHead(h, "Nasreen", 5, "College of computer engineering and science", "Computer Science", 3.44);
Student*a=new Student("Sara", 1, "College of computer engineering and science", "Information Technology", 3.25);
Addtail(a, "Nasreen", 5, "College of computer engineering and science", "Computer Science", 3.44);
Addtail(a, "Lujain", 3, "College of Business Administration", "MIS", 3.01);
Addtail(a, "Amna", 4, "College of Arts and Sciences", "Law", 3.68);
Student*b=new Student("Hiba", 2, "College of Engineering", "Interior Design", 2.7);
Addtail(b, "Nasreen", 5, "College of computer engineering and science", "Computer Science", 3.44);
Student*c=new Student("Lujain", 3, "College of Business Administration", "MIS", 3.01);
Addtail (c, "Sara", 1, "College of computer engineering and science", "Information Technology", 3.25);
Addtail (c, "Amna", 4, "College of Arts and Sciences", "Law", 3.68);
Student*d=new Student("Amna", 4, "College of Arts and Sciences", "Law", 3.68);
Addtail (d,"Hiba", 2, "College of Engineering", "Interior Design", 2.7);
Student*e=new Student("Nasreen", 5, "College of computer engineering and science", "Computer Science", 3.44);
Addtail (e, "Lujain", 3, "College of Business Administration", "MIS", 3.01);
}
void Print(student* h)
{
while(h)
{
cout<<h->id;
cout<<h->firstname
cout<<h->college;
cout<<h->GPA;
cout<<h->major;
h=h->next;
}
cout<<endl;
int main()
{
student*head=NULL;
head->next=(
print (head);
createlist(head,5);
return 0;
}

Originally Posted by
Curlyben
What do YOU think ?
While we're happy to HELP we wont do all the work for you.
Show us what you have done and where you are having problems..