摘要: C++点和箭头操作符用法区别变量是对象的时候用“.”访问变量是对象指针的时候用“->”访问例:#inlclude usingnamespacestd;classA{public:intx;inty; };intmain(){A a;a.x=100; //对象用点访问// a->y=100; //er... 阅读全文
posted @ 2014-11-16 20:46 tony.li 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 最简单的程序c1#include "test.h"#include #include #include int main( int argc, char **argv ){ QApplication a( argc, argv ); QPushButton hello( "hello",... 阅读全文
posted @ 2014-11-16 20:45 tony.li 阅读(303) 评论(0) 推荐(0) 编辑