VC四连错
int kernel_main(){
char *display_buf = (char*)0xb8000;
unsigned int i = 0;
const unsigned int total = 80 * 25 * 2;
while(i < total)
{
display_buf[i++] = ' ';
display_buf[i++] = 0x04;
}
const char *str = "Hello World, welcome to kernel!"; error C2143: syntax error : missing ';' before 'const'
for (i = 0; '\0' != *str;) error C2065: 'str' : undeclared identifier error C2100: illegal indirection
{
display_buf[i++] = *(str++); error C2100: illegal indirection
display_buf[i++] = 0x04;
}
return 0;
}
kernel.obj - 4 error(s), 0 warning(s)