乌班图里编程权限不够系统编程的功能用不了,怎么回事

Ubuntu 8.04系统中应用程序打不开的解决一例_Linux教程_Linux公社-Linux系统门户网站
你好,游客
Ubuntu 8.04系统中应用程序打不开的解决一例
来源:Linux社区&
作者:Linux编辑
应用程序打不开 ,本人在 8.04下用下面的方法解决了此问题,不过对各Ubuntu版本应该也有效。
用root用户在终端中输入
cp /etc/xdg/menus/applications.menu ~/.config/menus/
就可以了,这样就可以打开应用程序了。
相关资讯 & & &
& (02/07/:48)
& (10/17/:01)
& (01/23/:10)
& (01/29/:38)
& (08/23/:20)
& (11/01/:11)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款下c++编程奇怪的问题-红联Linux系统门户
您的位置:
&& 查看内容 - - -
下c++编程奇怪的问题
tianyamingyue发布于
&&字号: &&&&(网友评论&4&条)&
首先感谢大家看这个帖子,谢谢。
我初学linux,用的是ubuntu 7.04,写了一个上课时老师讲过的程序,但是问题出了一大堆,
class Student
Student(char * pName="no name")
cout<<"Create a one student"<<
strcpy(name,pName);
noOfStudent++;
cout<<noOfStudent<<
~Student()
cout<<"Destructing one student"<<
noOfStudent++;
cout<<noOfStudent++;
static int number()
protected:
static int Student::noOfStudent=0;
Student s1;
Student s2;
cout<<Student::number()<<
void main()
cout<<"Student::number()"<<
编译后的错误提示:
15.1.cpp:24: 错误: 程序中有游离的 ‘\357’
15.1.cpp:24: 错误: 程序中有游离的 ‘\275’
15.1.cpp:24: 错误: 程序中有游离的 ‘\235’
15.1.cpp:30: 错误: 有多余的限定 ‘Student::’ 在成员 ‘noOfStudent’ 上
15.1.cpp:30: 错误: ISO C++ 不允许在类内初始化非常量静态成员 ‘noOfStudent’
15.1.cpp:43: 错误: expected `}' at end of input
15.1.cpp: In constructor ‘Student::Student(char*)’:
15.1.cpp:10: 错误: ‘name’ 在此作用域中尚未声明
15.1.cpp: In static member function ‘static int Student::number()’:
15.1.cpp:26: 错误: expected primary-expression before ‘protected’
15.1.cpp:26: 错误: expected `;' before ‘protected’
15.1.cpp: At global scope:
15.1.cpp:43: 错误: expected unqualified-id at end of input
其中的“程序中有游离的 ‘\357’”这个错误,我在网上也没搜到,其他的感觉更奇怪,windows下就没这样的错误。请高手帮我。谢谢。
作者: xiayousen&发布日期:
不太清楚,呵呵
作者: ice123456&发布日期:
那是你程序中使用的符号有问题,应该不是英文符号,你自己看下。
作者: honglianqxw123&发布日期:
static int Student::noOfStudent=0;
可能在在上句定义时初始化。
作者: honglianqxw123&发布日期:
class Student
protected:
Student(char * pName="no name")
cout<<"Create a one student"<<
strcpy(name,pName);
noOfStudent++;
cout<<noOfStudent<<
~Student()
cout<<"Destructing one student"<<
noOfStudent++;
cout<<noOfStudent++<<
static int number()
int Student::noOfStudent=0;
Student s1;
Student s2;
cout<<Student::number()<<
int main(void)
cout<<Student::number()<<
system("pause");
调试通过。
错误有两处:1. static变量初始化时去掉static 2. 一个函数的右大括号错了,可能写成“大写”的了。
共有评论数 4/每页显示数 10
发表评论,与各位同人交流。回复请点击下方的我要评论按钮(游客可回复),要发表贴子请点击
Linux教程下载?“”(请点击),Linux教程免费下载。
求助Linux问题?论坛有39版块,覆盖所有Linux技术层面。前往“”
 |  |  |  |  |  |  |  |  |  |  |  | 
&2017 红联 Powered by SupSite

我要回帖

更多关于 乌班图系统安装 的文章

 

随机推荐