test6-1.c
来自「固高GT400运动控制卡」· C语言 代码 · 共 36 行
C
36 行
#include <stdio.h>
#include <conio.h>
#include "D:\ѧϰ\T4VP-CD-040416\Dos\userlib-1.5\userlib.h"
void main()
{
short rtn;
rtn=GT_Open();
if(rtn!=0)
{
printf("Open is fault!\n");
printf("Press any key quit!\n");
getch();
}
else
{
rtn=GT_ChkVrsn();
switch (rtn)
{
case -2:
printf("Version is wrong!\n");
break;
case -1:
printf("Communication is fault!\n");
break;
case 0:
printf("Communication is successful!\n");
break;
}
printf("Press any key quit!\n");
getch();
}
GT_Close();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?