Thread: NEED HELP!!! cant compile the program...

  1. #1
    Registered User
    Join Date
    Aug 2013
    Posts
    4

    NEED HELP!!! cant compile the program...

    {
    bool exit = false;
    string studentName;
    string studentID;

    ...

    cout << "\nPlease enter Student's Name <a to z> : " << endl;
    cout << ">> ";
    getline(cin, studentName);

    cout << "\nPlease enter Student's ID <Eg : 1003095> : " << endl;
    cout << ">> ";
    cin >> studentID;


    1.error C3861: 'getline': identifier not found
    2.error C2678: binary '>>' : no operator found which takes a left-hand operand of type 'std::istream' (or there is no acceptable conversion)
    Last edited by Issac Lee; 08-09-2014 at 06:28 AM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    It was urgent a year ago, and yet it still looks the same.
    http://cboard.cprogramming.com/cplus...ve-please.html

    So you flunked out last year, but spent NONE of the intervening 50 odd weeks doing anything about it, so here you are again, at the beginning of term, with the same assignment, and same level of clueless.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program won't compile
    By bmryner in forum C Programming
    Replies: 9
    Last Post: 12-11-2012, 08:32 PM
  2. GCC compile c program
    By aweida in forum C Programming
    Replies: 6
    Last Post: 10-01-2010, 11:27 AM
  3. program compile help
    By farminbob in forum C Programming
    Replies: 5
    Last Post: 12-04-2007, 12:03 PM
  4. Please help compile this program
    By hkuser2001 in forum C Programming
    Replies: 2
    Last Post: 04-29-2006, 07:18 AM