Thread: paginate
View Single Post
  #2 (permalink)  
Old March 8th, 2006, 03:33 PM
C@uark C@uark is offline
Authorized User
 
Join Date: Oct 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to C@uark
Default

void displayStudent(Student s)
{
    cout << s.id << " " << s.firstname <<" "<< s.surname;

}

your cout statement had single quotes in it and should have double quotes as in the above. double quotes represent strings terminated by a null character as where single quotes represent a single character not terminated by a null character
Reply With Quote