主题:字符显示问题
#define SCREEN (*SCREENPOINTER)
#include <string.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#define ROW 25
#define COLUMN 80
typedef struct TEXT
{
unsigned char CHAR;
unsigned char ATTRIBUTE;
}TEST;
typedef TEST SCREENARRAY[ROW][COLUMN];
SCREENARRAY *SCREENPOINTER=(SCREENARRAY *)0xb80000001;
char HELLO[]="HELLO CHINA!";
int main(void)
{
int CIRCLE;
system("cls");
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 0;
}
为什么不能显示?
#include <string.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#define ROW 25
#define COLUMN 80
typedef struct TEXT
{
unsigned char CHAR;
unsigned char ATTRIBUTE;
}TEST;
typedef TEST SCREENARRAY[ROW][COLUMN];
SCREENARRAY *SCREENPOINTER=(SCREENARRAY *)0xb80000001;
char HELLO[]="HELLO CHINA!";
int main(void)
{
int CIRCLE;
system("cls");
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 0;
}
为什么不能显示?