/**/
/****************************************************************/

/**/
/* Created with BCX -- The BASIC To C Translator */

/**/
/* BCX (c) 1999, 2000 by Kevin Diggins */

/**/
/****************************************************************/


#include
<
windows.h
>
/**/
/* Windows Specific Header File */

#include
<
windowsx.h
>
/**/
/* Windows Specific Header File */

#include
<
commctrl.h
>
/**/
/* Windows Specific Header File */

#include
<
mmsystem.h
>
/**/
/* Windows Specific Header File */

#include
<
shellapi.h
>
/**/
/* Windows Specific Header File */

#include
<
winsock.h
>
/**/
/* Windows Specific Header File */
#include
<
stdio.h
>
#include
<
string
.h
>
#include
<
stddef.h
>
#include
<
stdlib.h
>
#include
<
ctype.h
>
#include
<
setjmp.h
>
#include
<
math.h
>
#include
<
time.h
>
#include
<
cstdlib
>

/**/
/* ------------------------ */

/**/
/* System Variables */

/**/
/* ------------------------ */

static
COORD cursor;
static
HANDLE hConsole;
static
int
color_fg
=
7
;
static
int
color_bg
=
0
;
static
jmp_buf GosubStack[
100
];
static
int
GosubNdx;
static
int
StrCnt;
static
char
StrFunction [
64
][
257
];
static
char
InputBuffer [
257
];

/**/
/* ------------------- */

/**/
/* User's Constants */

这是一个将用BCX编译器编写的Basic代码转换为C语言的示例。转换后的C代码包含Windows特定的头文件,如<windows.h>,并涉及数学运算、文件操作和字符串处理。
的C文件&spm=1001.2101.3001.5002&articleId=1870031&d=1&t=3&u=0dd10a38930c40d7a8316cd83c7171ed)
3029

被折叠的 条评论
为什么被折叠?



