幫忙看看哪錯了
#include<stdio.h>
int main()
{
int a;
for(a=33;a<=126;a=a+1)
printf("%d\t%x\t\t%c\n",a,a,a);
}
以下是提示錯誤
--------------------Configuration: 123 - Win32 Debug--------------------
Compiling...
123.cpp
d:\c語言程序\七七八八\debug\debug\123.cpp(6) : error C2018: unknown character '0xa1'
d:\c語言程序\七七八八\debug\debug\123.cpp(6) : error C2018: unknown character '0xa1'
d:\c語言程序\七七八八\debug\debug\123.cpp(6) : error C2018: unknown character '0xa1'
d:\c語言程序\七七八八\debug\debug\123.cpp(6) : error C2018: unknown character '0xa1'
d:\c語言程序\七七八八\debug\debug\123.cpp(7) : warning C4508: 'main' : function should return a value; 'void' return type assumed
執行 cl.exe 時出錯.
#include <stdio.h>
int main()
{
int a;
for(a=33;a<=126;a=a+1)
printf("%d\t%x\t\t%c\n",a,a,a);
return 0;//我這裡現在是完全編譯通過,ASCII?
}