Search code examples
c++borland-c++

my code in visual studio 2005 & 2008 & 2010 is work but in borland c++ 5.02 is not work,and have error


My code in visual studio 2005 & 2008 & 2010 works but in Borland c++ 5.02 is does not.

The error is:

Info :Compiling C:\Program Files\BORLAND C++ 5.02\BIN\noname00.cpp
Error:  noname00.cpp(85,26):Qualifier 'amaliat' is not a class or namespace name
Error:  noname00.cpp(85,28):Function call missing )
Warn :  noname00.cpp(87,2):Parameter 'mab' is never used
Warn :  noname00.cpp(87,2):Parameter 'date' is never used
Error:  noname00.cpp(91,26):Qualifier 'amaliat' is not a class or namespace name
Error:  noname00.cpp(91,28):Function call missing )
Warn :  noname00.cpp(93,2):Parameter 'mab' is never used
Warn :  noname00.cpp(93,2):Parameter 'date' is never used
Error:  noname00.cpp(102,24):Qualifier 'amaliat' is not a class or namespace name
Error:  noname00.cpp(102,17):If statement missing )
Error:  noname00.cpp(115,2):Identifier 'chapeKol' cannot have a type qualifier
Error:  noname00.cpp(280,2):Declaration syntax error
Error:  noname00.cpp(467,1):Declaration missing ;
Error:  noname00.cpp(467,1):Compound statement missing }

How can I solve it? I need to run this code in Borland c++ 5.02 Please help me. link to my code : http://www10.speedyshare.com/files/26564837/download/mycode.txt


Solution

  • void HESAB::variz(int mab,TARIKH date)
    {
        x[index].add(mab,amaliat::VARIZenum,date);
        index++;
    }
    
    void HESAB::bardasht(int mab,TARIKH date)
    {
        x[index].add(mab,amaliat::BARDASHTenum,date);
        index++;
    }
    

    I think it's complaining about the amaliat::VARIZenum syntax. Try specifying just VARIZenum.