注册 登录
编程论坛 C++教室

通信簿显示部分就出错了,大家帮忙看看!

GeneralJing 发布于 2011-11-16 19:39, 705 次点击
我想编写一个通信簿程序,因为是菜鸟级别,所以打算一个模块一个模块慢慢写,但刚写到第一部分就出了错误,一时不知怎么办,请哪位大侠知道我的错在哪里帮忙解答一下,感激不尽!代码如下:
#include <iostream>
using namespace std;
int main()
{
    cout << "* * * * * * 模拟电话簿 * * * * * *" << endl;
    cout << "*          1.添加通信录           *" << endl;
    cout << "*          2.删除通信录           *" << endl;
    cout << "*          3.显示通信录           *" << endl;
    cout << "*          4.电话簿存盘           *" << endl;
    cout << "*          5.读出电话簿           *" << endl;
    cout << "*          6.查找联系人           *" << endl;
    cout << "*          7.退出                 *" << endl;
    cout << "* * * * * * * * * * * * * * * * * *" << endl;
    return 0;  
}
运行之后,错误弹出如下:
d:\program files\microsoft visual studio 10.0\练习项目文件夹\communicationbook\communicationbook\communicationbook.cpp(16): error C3872: “0x3000”: 此字符不允许在标识符中使用
1>d:\program files\microsoft visual studio 10.0\练习项目文件夹\communicationbook\communicationbook\communicationbook.cpp(16): error C3872: “0x3000”: 此字符不允许在标识符中使用
1>d:\program files\microsoft visual studio 10.0\练习项目文件夹\communicationbook\communicationbook\communicationbook.cpp(17): error C2065: “  ”: 未声明的标识符
1>d:\program files\microsoft visual studio 10.0\练习项目文件夹\communicationbook\communicationbook\communicationbook.cpp(17): error C2143: 语法错误 : 缺少“;”(在“}”的前面)
请大家帮帮忙!
5 回复
#2
hellovfp2011-11-17 12:16
自己查一下,哪些地方该打成英文的地方,你打成中文了。
#3
心灵百合2011-11-17 17:03
中文冒号和分号跟英文的混在一起了吧
#4
GeneralJing2011-11-17 19:51
回复 2楼 hellovfp
我都改了一遍,还是报错误,跟之前一样,不知道哪里出错了……
#5
GeneralJing2011-11-17 20:21
回复 2楼 hellovfp
搞定了,多谢
#6
GeneralJing2011-11-17 20:21
搞定了,多谢!
1