All pastes #966070 Raw Edit

Miscellany

public cpp v1 · immutable
·published 2008-04-01 13:38 UTC
rendered paste body
#include <iostream.h>class Time{private:	int h;	int m;	int s;public:                   void setTime();           void setTime(int,int,int);//Yperfortwsi Sunanartisewnint getHours();int getminute();int getSecons();	void printTime();				};void main(){	Time ClkA,ClkB;	ClkA.setTime();	ClkB.setTime(7,5,10);}void Time::setTime(){	cout<<"Dwse times gia to h,m,s\n";	cin>>h>>m>>s;}void Time::setTime(int a,int b,int c){	h=a;	m=b;	s=c;}int Time::getHours(){	return h;}int Time::getminute(){	return m;}int Time::getSecons(){	return s;}