?? clockbc.h
字號:
//ClockBc.h
#ifndef CLOCKVC_H //避免多次包含
#define CLOCKVC_H
#include<time.h>
#include<stdio.h>
#include<dos.h>
#include<conio.h>
#include<math.h>
#include<graphics.h> //包含圖形函數原型的頭文件
#define PI 3.14159
class LongTime //定義LongTime類
{
time_t ltime; //私有數據成員ltime,類型time_t實際是long
struct tm *pt; //私有數據成員pt為指向時間結構tm的指針
public:
void initialize(void); //初始化成員函數
void showTime(void); //重載成員函數--圖形方式顯示時間
void showTime(int x, int y); //重載成員函數--字符方式顯示時間
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -