gcc prolimata

Aleksandros Paleos apalaios at cs.teiath.gr
Sun Mar 2 21:11:01 EET 2003


kalispera exo kapoia problimata me ton gcc
exo to parakato programma 
stin kosnola trexo 
gcc askisi1.cpp -o askisi1 
kai pairno san apotelesma to parakato
to problima einai oti sto devcpp doyleyei kanonika!!!!!!!


askisi1.cpp: In member function `void TDate::Display()':
askisi1.cpp:26: `cout' undeclared (first use this function)
askisi1.cpp:26: (Each undeclared identifier is reported only once for each
   function it appears in.)
askisi1.cpp:28: `endl' undeclared (first use this function)




#include <iostream>
class TDate
{
private:
        int dt_month;
        int dt_year;
        int dt_day;
public:
        TDate (int month,int day,int year);
        void Display();
};
int main()
{
TDate dt_Object(11,4,2000);
dt_Object.Display();
return 0;
}
TDate::TDate(int month,int day,int year)
{
dt_month=month;
dt_year=year;
dt_day=day;
}
void TDate::Display()
{
cout << "i imerominia einai" << dt_day
     << "/" << dt_month
     << "/" << dt_year << endl;
}

-- 
Παλαιος Αλεξανδρος
Φοιτητης ΤΕΙ Πληροφορικης Αθηνας



More information about the Linux-greek-users mailing list