C/C++
文章平均质量分 83
warrior_zhang
这个作者很懒,什么都没留下…
展开
-
QT中 QT_BEGIN_NAMESPACE、QT_END_NAMESPACE的应用介绍!!
原文:http://www.qtcn.org/bbs/read.php?tid=14065#ifndef WINDOW_H#define WINDOW_H#include #include QT_BEGIN_NAMESPACEclass QAction;class QCheckBox;class QComboBox;class QGroupBox;原创 2016-01-12 13:01:09 · 1187 阅读 · 0 评论 -
My understand of stack and queue
First:Abstract stack and queue have the same logical structure like linear list. But the stack only can write and read at one side of the list; the queue only can write at one side of the list an原创 2016-01-12 13:00:39 · 293 阅读 · 0 评论 -
My understand of KMP describe in C
FIRST:KMP--abstract It's a algorithm improving from sample matching algorithm (BF algorithm). It's detail description can view in WIKI from below: http://en.wikipedia.org/wiki/Knuth%E2原创 2016-01-12 13:00:43 · 275 阅读 · 0 评论 -
My first CXX problem:"aggregate has incomplete type and cannot be defined"
When I test to code in CPP, I meet a problem. And It's error:aggregate ‘Printer My_Printer’ has incomplete type and cannot be defined. After my debug I realized that there is an error in my state原创 2016-01-12 13:00:45 · 5064 阅读 · 0 评论 -
define function pointer
just two lines code: 1 void (*funcPtr)(); 2 void *funcPtr();1 means start from "funPtr" -> ")" then "(*", oh,good this is a pointer to the function "funPtr", then -> "()"no parameters原创 2016-01-12 13:00:48 · 362 阅读 · 0 评论 -
notes of C++
1* using namespace std; had better used in .cpp file but not in .h file namespace like a space which can contain class/variable/function and so on 1)create a namespace name原创 2016-01-12 13:00:50 · 253 阅读 · 0 评论 -
my makefile for CPP v2.0
this is my second makefile for my Cpp project!It's designed for multi folders!It's direction:warrior@warrior-ThinkPad:~/CreazyCode/CPPproject/Mdemo$ tree.├── inc│ ├── demo.h│ └── m原创 2016-01-12 13:01:02 · 222 阅读 · 0 评论 -
QT学习之路
1、QT一些宏的介绍: Q_OBJECT :如果要用到 signal 或者 slot,就要在类的开始加入这个宏。只有加入了Q_OBJECT,你才能使用QT中的signal和slot机制。 Q_DECL_OVERRIDE:在QT中是这样定义的,# define Q_DECL_OVERRIDE override原创 2016-01-12 13:01:07 · 574 阅读 · 0 评论 -
Qt标准对话框之QMessageBox
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://devbean.blog.51cto.com/448512/217694 好久没有更新博客,主要是公司里面还在验收一些东西,所以没有及时更新。而且也在写一个基于Qt的画图程序,基本上类似于PS的东西,主要用到的是Qt Graphics View Framewo原创 2016-01-12 13:01:12 · 546 阅读 · 0 评论 -
build makefile for my coding!!
I learn how to build makefile from below:http://www.chinaunix.net/old_jh/23/408225.htmlhttp://blog.chinaunix.net/uid-23089249-id-2855999.htmlThis is my first makefile demo!!It's so simple an原创 2016-01-12 13:00:32 · 447 阅读 · 0 评论