ARg!

This is a discussion on ARg! within the C++ Programming forums, part of the General Programming Boards category; "How do I separate the student from the ID from the grade using getline?" Go back to the beginning of ...

  1. #16
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    "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 09:36 PM.

  2. #17
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    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 03: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)

Page 2 of 2 FirstFirst 12
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, 04:01 AM
  2. Replies: 10
    Last Post: 06-08-2009, 03:42 PM
  3. Replies: 5
    Last Post: 08-12-2007, 06:26 PM
  4. Ranged numbers
    By Desolation in forum Game Programming
    Replies: 8
    Last Post: 07-25-2006, 11:02 PM
  5. Compiler "Warnings"
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 04-24-2005, 02:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21