All pastes #938273 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-11 14:42 UTC
rendered paste body
#include <iostream.h>

struct time
	{
		int d,m,y;
	};

void PrintTime(time);
void main()
{
	time clkA,clkB;
	
	cout <<"Dwse wra prwtou rologiou, prwta hours, meta mins, meta secs"<<endl;
	cin >>clkA.d>>clkA.m>>clkA.y;
	PrintTime(clkA);
	
	cout <<"Dwse wra deuterou rologiou, prwta hours, meta mins, meta secs"<<endl;
	cin >>clkB.d>>clkB.m>>clkB.y;
    
	PrintTime(clkB);

}


void PrintTime(time A)
{
    cout <<"Clock: " <<A.d<<":"<<A.m<<":"<<A.y<<endl;
}