摘要: 查看import 是否 import android.R 有的话 删掉 阅读全文
posted @ 2016-02-23 13:38 西电吴同学 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1.自己写的activity并在AndroidManifest.xml中注册 在模拟机上运行时出现No Launcher activity found!The launch will only sync the application package on the device!模拟机中没有文件解决... 阅读全文
posted @ 2016-01-25 20:38 西电吴同学 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1.右键选择 计算机→属性→高级系统设置→高级→环境变量2.系统变量→新建变量名:JAVA_HOME变量值:(变量值填写你的jdk的安装目录,例如本人是 E:Javajdk1.7.0)3.在系统变量中找到 Path 变量,选择编辑在变量值最后输入 %JAVA_HOME%in;%JAVA_HOME%... 阅读全文
posted @ 2016-01-09 23:05 西电吴同学 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 用qt designer弄了一个qq.ui新建一个空项目,把qq.ui加入,新建一个qq类,qq.h如下#ifndef QQ#define QQ#include namespace Ui{ class qq;}class qq:public QMainWindow{ Q_OBJECTpu... 阅读全文
posted @ 2015-10-25 21:17 西电吴同学 阅读(5760) 评论(0) 推荐(0) 编辑
摘要: auto ptr = new char[10];delete ptr;delete 一个动态数组不能直接delete ptr, 应该是 delete[] ptr; 阅读全文
posted @ 2015-10-22 20:21 西电吴同学 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 定义了一个函数f(const string &str, long pos, long count = -1){ //do something}而在使用时却发生了错误int main(){ string str; long pos = 1; f(str, pos);}提示信息为错误 1 err... 阅读全文
posted @ 2015-10-21 20:53 西电吴同学 阅读(263) 评论(0) 推荐(1) 编辑
摘要: 错误 1 error LNK2019: 无法解析的外部符号 "public: __thiscall test::test(void)" (??0test@@QAE@XZ),该符号在函数 "class test __cdecl operator+(class test &,class test &)"... 阅读全文
posted @ 2015-10-16 11:45 西电吴同学 阅读(732) 评论(0) 推荐(0) 编辑