上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 转自:https://blog.csdn.net/runfarther/article/details/50036115# 我们先看三段C++程序: 一、line1的源码 line1.h #ifndef _LINE_1_H #define _LINE_1_H void line1_print(con 阅读全文
posted @ 2020-07-31 17:06 sunshine_gzw 阅读(1054) 评论(0) 推荐(0) 编辑
摘要: 编译:把你能看懂,但机器看不懂的源代码,翻译成你看不懂但机器能看懂的二进制文件。编译过程对于C/C++来说,一般有预处理,编译生成中间文件,链接这三个大过程,具体的这里就不多说了,有很多介绍的。 生成:按照你说的,VS中解决方案指的是完成一个目标的解决方案,字面意思。很多时候你完成一个开发目标,除了 阅读全文
posted @ 2020-07-30 13:34 sunshine_gzw 阅读(2670) 评论(0) 推荐(1) 编辑
摘要: 原文:https://www.cnblogs.com/asuser/articles/12297251.html 刚开始使用VS2017新建项目工程时,有时把应用类型的工程建成控制台类型的工程,在编译时报如下错误: 如果是Windows程序,那么WinMain是入口函数,新建项目为“win32项目” 阅读全文
posted @ 2020-07-30 09:16 sunshine_gzw 阅读(337) 评论(0) 推荐(0) 编辑
摘要: #ifdef WIN32 #include<windows.h> #else #include<string.h> #include<unistd.h> #include<stdlib.h> #include<arpa/inet.h> #include<sys/types.h> #include<s 阅读全文
posted @ 2020-07-29 13:36 sunshine_gzw 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; class B { public: B() { cout << "B()被调用" << endl; } B(const B&) { cout << "B的拷贝构造函数被调用" << endl; } B& operator 阅读全文
posted @ 2020-07-20 21:44 sunshine_gzw 阅读(181) 评论(0) 推荐(0) 编辑
摘要: widget.h: #ifndef WIDGET_H #define WIDGET_H #include<QPaintEvent> #include <QWidget> #include<QPixmap> #include<QImage> class Widget : public QWidget 阅读全文
posted @ 2020-07-12 17:50 sunshine_gzw 阅读(171) 评论(0) 推荐(0) 编辑
摘要: mythread.h: #ifndef MYTHREAD_H #define MYTHREAD_H #include <QObject> #include<QMutex> class MyThread : public QObject { Q_OBJECT public: explicit MyTh 阅读全文
posted @ 2020-07-10 14:15 sunshine_gzw 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: vector.h: #ifndef __Vector__H__ #define __Vector__H__ typedef int Rank; #define DEFAULT_CAPACITY 3 template<typename T> class Vector{ protected: Rank 阅读全文
posted @ 2020-07-10 00:54 sunshine_gzw 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 第一种创建: mythread1.h: #ifndef MYTHREAD_H #define MYTHREAD_H #include<QThread> #include<QDebug> class mythread:public QThread { public: mythread(const QS 阅读全文
posted @ 2020-07-09 23:58 sunshine_gzw 阅读(136) 评论(0) 推荐(0) 编辑
摘要: widget.h: #ifndef WIDGET_H #define WIDGET_H #include <QWidget> #include<QEvent> class Widget : public QWidget { Q_OBJECT public: Widget(QWidget *paren 阅读全文
posted @ 2020-07-09 11:08 sunshine_gzw 阅读(380) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页