سلام میشه یک برنامه ساعت با زبان c++برای من بنویسید
babakiyan
24-05-2011, 17:43
دوست عزیز این برنامه کلاس time و برنامه راه اندازش میباشد
// fig.9.1:time.h
// declaration of class time.
// member functions are defined in time .cpp
// prevent multiple inclustions of header file
# finder time_h
#define time_h
//time class definition
Class time
{
Public:
Time ();// constructor
Void settime(int,int,int);//set hour,minute and second
Void printuniversal();//print time in universal-time format
Void printstandard();//print time in standard-time format
Private:
Int hour;//0-23(24-hour clock format)
Int minute;//0-59
Int second;//0-59
};//end class time
#end if
vBulletin , Copyright ©2000-2025, Jelsoft Enterprises Ltd.