📄 example.c
字号:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <fpclib.h>
/*---------------------------------------------------------------
-
- EXAMPLExxx where xxx is the number of the example to compile
-
- #define EXAMPLExxx 1
-
---------------------------------------------------------------*/
#define EXAMPLE010 1
/*----------------------------------------------------------
-
----------------------------------------------------------*/
#if defined(EXAMPLE001)
void main( void )
{
VioInit();
}
/*----------------------------------------------------------
-
----------------------------------------------------------*/
#if defined(EXAMPLE002)
void main( void )
{
int i;
VioInit();
ClrWin( 1, 1, 80, 25, 7 );
for ( i = 0; i < 16; i++ ) {
DspMsg( 1, i+1, " " );
BorderColor( i );
ColorMsg( 1, i+2, i+1, "Press any key to see next border color" );
GotoxyAbs( 1, i+2 );
GetKey();
}
BorderColor( 0 );
ClrWin( 1, 1, 80, 25, 7 );
GotoxyAbs( 1, 1 );
}
/*----------------------------------------------------------
-
----------------------------------------------------------*/
#elif defined(EXAMPLE003)
char TCSet[32] = { 0,101, 0,0,0,0, 0,24,
57,213,192,0,0,0,95, 0,
8, 0, 0,0,0,0, 0, 0,
0, 0, 0,0,0,0, 0, 0
};
char VCSet[32] = { 0, 0, 0, 0,255,255,255,255,
255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255
};
char *prompt = "Enter name:";
void main( void )
{
char st[256];
int x1 = 1;
int y1 = 1;
int stpt = ( x1 + 20 ) - (strlen( prompt ) / 2);
int CharOfs = 1;
int TE = 0;
int WinColor = 0x17;
VioInit();
memset( st, 0, 256 );
ClrWin( 1, 1, 80, 25, 7 );
ClrWin( x1, y1, x1+40, y1+5, WinColor);
WindowFP( x1, y1, x1+40, y1+5 );
FrameWin( '
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -