/* demot.cpp Luokka, joka laskee demopisteit„ vl 6.3.2002 40% 50% 60% 70% 80% 90% 1 2 3 4 5 6 Tavoite: saadaan luokka syntaktisesti kuntoon avaa demot3.cpp */ #include using namespace std; class cDemot { public: // t2 cDemot s t2 l s l // t2 lisaa_rajat s t t l s l // t2 setTehtavia s t2 l s l cDemot lisaa_rajat setTehtavia int getPisteet(double n) const { return 0; } }; int main(void) { cDemot demot; demot.lisaa_rajat(1,40); demot.lisaa_rajat(2,50); demot.lisaa_rajat(3,60); demot.setTehtavia(8*8); int pisteet = demot.getPisteet(45); // hyvityspisteet 45:ll„ teht„v„ll„ cout << pisteet << "\n"; return 0; }