Ai
1 Star 0 Fork 0

芙蓉泣露香兰笑/C-code

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Calculator.h 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
C 提交于 2021-01-16 19:15 +08:00 . 7
#include "C:\Users\Programmer\Desktop\source code\error.h"
#include "C:\Users\Programmer\Desktop\source code\typedef.h"
#include "C:\Users\Programmer\Desktop\source code\defin.h"
#include "C:\Users\Programmer\Desktop\source code\inline.h"
static struct strat_and_time {
unsigned int counter;
double time;
};
static struct log_data {
double time;
char time_date[80];
};
#define MAX_BUFFER 100
#define MAX_USER_INPUT 100
#define NUMBER '0'
#define MAX_INPUT 100
#define MAX_TIME 80
//* 计算函数声明 */
int getop (char s[restrict]);
inline void buffer (const int c);
inline void push (const double number);
inline int getch (void);
inline double pop (void);
void message (const unsigned int number, const bool usre_input_error);
void input_accuracy (int *restrict const prt, bool *restrict const input_switch);
//* 文件函数声明 */
char * output_log_file_name (char *restrict const argv_func[], const int max, const char *restrict const string);
int input_start_log (char *restrict const , struct strat_and_time *);
int output_start_log (const char *restrict const , const struct strat_and_time * , const double time);
int use_log (char *restrict const);
int use_end_log (char *restrict const log_file_name, const double);
/* 时间函数*/
double program_time (void);
void time_data (char *restrict const string[], int max);
double user_number[MAX_INPUT];
double buf[MAX_BUFFER];
double user_input[MAX_USER_INPUT];
counter_t index = 0;
void key_esc (void)
{
int esc_number = 0;
while (1)
{
esc_number = GetAsyncKeyState(VK_ESCAPE);
Sleep(100);
if (esc_number == (-32768) || esc_number == (-32767))
{
puts("您即将退出!");
puts("1...");
Sleep(1000);
puts("0...");
exit(EXIT_SUCCESS);
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/textGamex/C_code.git
git@gitee.com:textGamex/C_code.git
textGamex
C_code
C-code
master

搜索帮助