我们将创建的下一个库类型是静态库 (LIB)。 使用静态库是重用代码的一种绝佳方式。 您不必在自己创建的每个程序中重新实现同一例程,而只需对这些例程编写一次,然后从需要该功能的应用程序引用它们即可。 本演练演示如何完成以下任务: 创建静态库项目。 向静态库添加类。 创建引用静态库的控制台应用程序。 Read More
posted @ 2017-02-07 18:32 findumars Views(340) Comments(0) Diggs(0)
#include <iostream> using namespace std; template<typename T> class _ischararray_; template<typename T, int N> class _ischararray_<T[N]> { public: sta Read More
posted @ 2017-02-07 18:30 findumars Views(1037) Comments(0) Diggs(0)
由于最近不常用,结果导致今天用的时候忘记了,╮(╯▽╰)╭。现在标记一下: 方法如下,先创建一个C++ Project,然后加入上面的代码,在main函数或者其他地方设置断点,注意是Debug版本,否则代码经过优化会多很多。然后按钮F5或者点击Debug->Start Debuging程序会走到ma Read More
posted @ 2017-02-07 18:29 findumars Views(2970) Comments(0) Diggs(0)
#include <iostream> using namespace std; class DemoOne{ public: void f(bool someParm=true){ cout<<"DemoOne f functions\n";} void g(){ cout<<"DemoOne g Read More
posted @ 2017-02-07 18:28 findumars Views(557) Comments(0) Diggs(0)
先看看效果图: pages.h #ifndef PAGES_H #define PAGES_H #include <QWidget> class ConfigurationPage : public QWidget { public: ConfigurationPage(QWidget *paren Read More
posted @ 2017-02-07 18:16 findumars Views(3351) Comments(0) Diggs(0)