Thread: ARg!

  1. #16
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    "How do I separate the student from the ID from the grade using getline?"

    Go back to the beginning of the thread and read all the posts. Take notes and study what each post has to say. You might even want to print them all out. All the information you need to complete your program is in the posts.
    Last edited by 7stud; 06-01-2003 at 08:36 PM.

  2. #17
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    student\student.h(16) : error C2062: type 'void' unexpected

    A function with a void return type can't have

    return 0;

    That return statement returns an int.
    -------------------
    istudent\student.cpp(11) : error C2039: 'GetGrade' : is not a member of 'Student'

    int GetGrade():

    See anything wrong with that function declaration?
    ----------------

    I suggest you begin your C++ studies over. Start with a "Hello World" program and get a good C++ book like "Ivor Horton's Beginning C++". If you can't catch errors like missing semicolons at the end of a line, and you don't know about return types, you aren't going to be successful programming with classes. Sorry, but your in way over your head with this program.

    Good luck.

  3. #18
    Registered User
    Join Date
    Apr 2003
    Posts
    31
    Last edited by Aakash Datt; 06-08-2003 at 02:12 AM.

  4. #19
    Registered User
    Join Date
    Apr 2003
    Posts
    31
    Please help me with the error above...(vector.h is not my program)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer to struct
    By Paul Johnston in forum C Programming
    Replies: 4
    Last Post: 06-11-2009, 03:01 AM
  2. Replies: 10
    Last Post: 06-08-2009, 02:42 PM
  3. Replies: 5
    Last Post: 08-12-2007, 05:26 PM
  4. Ranged numbers
    By Desolation in forum Game Programming
    Replies: 8
    Last Post: 07-25-2006, 10:02 PM
  5. Compiler "Warnings"
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 04-24-2005, 01:09 PM