struct Time {
int hour;
int munite;
int scecond;
};
void set(Time*p, int h, int m, int s);
void tick(Time*p);
void show(Time*p);
void run(Time*p);
#endif
引用时提示:
#include"clock.h"
无法打开源文件"clock.h"
...全文
5415打赏收藏
求助:自己定义的头文件不能用---在线等
自己定义的头文件: #ifndef _CLOCK_H_ #define _CLOCK_H_ struct Time { int hour; int munite; int scecond; }; void set(Time*p, int h, int m, int s); void tick(Time*p); void show(Time*p); void run(Time*p); #endif 引用时提示: #include"clock.h" 无法打开源文件"clock.h"
#ifndef _CLOCK_H_
#define _CLOCK_H_
struct STime
{
int hour;
int munite;
int scecond;
};
void Myset(STime *p, int h, int m, int s);
void tick(STime *p);
void show(STime *p);
void run(STime *p);
#endif