All pastes #1434299 Raw Edit

seek3r

public cpp v1 · immutable
#1434299 ·published 2009-05-25 20:58 UTC
rendered paste body
// CLOCK1.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <iostream>#include "alarm_clock.h"using namespace std;namespace A	{		int sat =12;		int minu =46;		int sec =0;	}namespace B	{		int sat =22;		int minu =22;		int sec =22;	}	int main(){	//namespace	using namespace B;	int secCount;	// Objekt klase Clock	Clock	myClock(12,59,59,"Obican sat");	cout<<"Obican sat: "<< endl;	myClock.display();	cout<<endl<<endl;		AlarmClock myAlarmClock;	cout<<"Budilica sat: "<<endl;	myAlarmClock.display();	cout<<endl<<endl;		myAlarmClock.setTime(13,0,0);	myAlarmClock.on_off_AlarmClock(true);	cout<<"Budilica sat: "<<endl;	myAlarmClock.display();		cout<<endl<<endl<<endl<<"labos 11"<<endl<<endl;	//zadatak 1	myAlarmClock.setAlarmClockTime(A::sat,A::minu,A::sec);	myAlarmClock.display();		cout<<endl<<"namespace B"<<endl;	myAlarmClock.setAlarmClockTime(sat,minu,sec);	myAlarmClock.display();		return 0;}