[求助]大家帮我看看,不懂啊
这是一本书上的原代码,上机却不行,我用的是turboc++3.0 大家帮帮忙告诉我是什么原因啊 #include <stdio.h> #include <string.h> #include <conio.h>
#define SCREEN (*SCREENPOINTER) #define ROW 25 #define COLUMN 80
typedef struct TEXT { unsigned char CHAR; unsigned char ATTRIBUTE; }TEST;
typedef TEST SCREENARRAY[ROW][COLUMN];
SCREENARRAY far *SCREENPOINTER=(SCREENARRAY far *) 0xb80000001;
char HELLO[]="HELLO WORLD!";
int main(void) { int CIRCLE; clrscr(); for (CIRCLE=0;CIRCLE<strlen(HELLO);CIRCLE++) { SCREEN[10][CIRCLE].CHAR = HELLO[CIRCLE]; } getch(); for (CIRCLE=0;CIRCLE<strlen(HELLO);CIRCLE++) { SCREEN[10][CIRCLE].ATTRIBUTE = 11; } getch(); return 1; }