?? autoveri.c
字號:
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#include <string.h>
#include <bios.h>
#include <mem.h>
#include <graphics.h>
#include <stdlib.h>
#include <io.h>
#include <fcntl.h>
#include "isp1362.h"
#include "isa290.h"
#include "reg.h"
#include "cheeyu.h"
void avalor(void)
{
FILE *logfile;
struct time logtime;
struct date logdate;
char result[5000];
if ((logfile = fopen("\\ISP1362.LOG", "w"))== NULL)
{ printf("Cannot open input file.\n"); return 0; }
fprintf(logfile,"Log File for ISP1362 Verification");
gettime(&logtime);
getdate(&logdate);
fprintf(logfile,"\nCreated on %02d/%02d/%04d",logdate.da_day,logdate.da_mon,logdate.da_year);
fprintf(logfile,", %02d:%02d:%02d\n\n",logtime.ti_hour,logtime.ti_min,logtime.ti_sec);
clrscr();
printf("Entering Automatic Verification And Logging Routine");
load_def();
wr_auto(&result);
fprintf(logfile,result);
fclose(logfile);
getch();
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -