一个简单的程序
刚学C++,不知道是怎么了,一个简单的程序竞然出现了这么多的错误,想不通。请大家帮我一下,在这谢过了。#include<iostream.h>
void main()
{
int x,y;
cout<<"输入学生分数:";
cin>>x;
y=x/10;
cout<<"此学生的绩点是:";
switch(y)
{
case 10:cout<<'A'<<endl; break;
case 9: cout<<'A'<<endl; break;
case 8: cout<<'B'<<endl; break;
case 7: cout<<'C'<<endl; break;
case 6: cout<<'D'<<endl; break;
case 5: cout<<'E'<<endl; break;
case 4: cout<<'E'<<endl; break;
case 3: cout<<'E'<<endl; break;
case 2: cout<<'E'<<endl; break;
case 1: cout<<'E'<<endl; break;
case 0: cout<<'E'<<endl; break;
deault: cout<<“输入错误!”<<endl;
}
}
不知道怎么会出现了13个错误?
这个是具体的错误:
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xa1'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xb0'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xca'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xe4'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xc8'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xeb'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xb4'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xed'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xce'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xf3'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xa1'
E:\学习\VC\课后\12.cpp(23) : error C2018: unknown character '0xb1'
E:\学习\VC\课后\12.cpp(23) : error C2059: syntax error : '<<'