A Log Book

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kgalalelo
    New Member
    • Mar 2008
    • 2

    A Log Book

    WHAT DOES IT MEAN WHEN THE COMPILER SAYS :fatal error C1903: unable to recover from previous error(s); stopping compilation
    Error executing cl.exe. I AM USING A C++ COMPILER. OTHER ERRORS ARE: putEntry' : local function definitions are illegal
    'getEntry' : local function definitions are illegal.

    I WRIRTEN THE IMPLEMENTATION LIKE THIS. ITS A LOG BOOK PROGRAM


    Logbook::Logboo k(int month,int year)
    {
    LogMonth = January;
    LogYear = 2008;


    void Logbook::putEnt ry( int day,int value)
    {
    return day;
    }

    int Logbook::getEnt ry(int day) throw(logic_err or)
    {
    day;
    return LogEntry;
    }

    int Logbook::getMon th()
    {
    return LogMonth;
    }

    int Logbook::getYea r()
    {
    return LogYear;
    }

    int Logbook::getDay sInMonth()
    {
    return LogDaysInMonth;
    }
    }
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Originally posted by kgalalelo
    WHAT DOES IT MEAN WHEN THE COMPILER SAYS :fatal error C1903: unable to recover from previous error(s); stopping compilation
    Error executing cl.exe.
    It means the the compiler has had so many errors, or that the errors so far are so bad that it can no longer continue the compilation because it is not sure where in the syntax of a C++ file it is meant to be.


    Originally posted by kgalalelo
    Logbook::Logboo k(int month,int year)
    {
    LogMonth = January;
    LogYear = 2008;
    You are missing a } at the end of this function.

    Comment

    Working...