自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 Qt常用快捷键

退出Qt Creeator。跳转到左边分栏对应按钮。当前范围出发自动补全。在声明和定义之间切换。

2024-01-14 09:44:51 419

原创 C++PrimerPlus(第6版)中文版十八章实例代码

实例18.10variadic2.cpp。实例18.9variadic1.cpp。实例18.7callable.cpp。实例18.11lexcast.cpp。实例18.2useless.cpp。实例18.3stdmove.cpp。实例18.4lambda0.cpp。实例18.5lambda1.cpp。实例18.8wrapped.cpp。实例18.1rvref.cpp。实例18.6somedef.h。

2023-11-22 21:02:33 102

原创 C++PrimerPlus(第6版)中文版十七章实例代码

实例17.2defaults.cpp。实例17.10iomanip.cpp。实例17.12cinexcp.cpp。实例17.14peeker.cpp。实例17.16fileio.cpp。实例17.18append.cpp。实例17.20random.cpp。实例17.21strout.cpp。实例17.7showpt.cpp。实例17.17count.cpp。实例17.22strin.cpp。实例17.1write.cpp。实例17.4width.cpp。实例17.9setf2.cpp。

2023-11-19 16:22:00 123

原创 C++PrimerPlus(第6版)中文版十六章实例代码

实例16.5smrtptrs.cpp。实例16.15functor.cpp。实例16.17strgst1.cpp。实例16.18listrmv.cpp。实例16.19usealgo.cpp。实例16.20valvect.cpp。实例16.2strfile.cpp。实例16.3hangman.cpp。实例16.10copyit.cpp。实例16.22ilist.cpp。实例16.7vect1.cpp。实例16.8vect2.cpp。实例16.9vect3.cpp。实例16.12list.cpp。

2023-11-19 15:50:56 122

原创 C++PrimerPlus(第6版)中文版十五章实例代码

实例15.16use_sales.cpp。实例15.19constcast.cpp。实例15.13newexcp.cpp。实例15.11error4.cpp。实例15.12error5.cpp。实例15.3use_tv.cpp。实例15.6nested.cpp。实例15.7error1.cpp。实例15.8error2.cpp。实例15.9error3.cpp。实例15.15sales.cpp。实例15.17rtti1.cpp。实例15.18rtti2.cpp。实例15.2tv.cpp。

2023-11-19 15:15:28 46

原创 C++PrimerPlus(第6版)中文版十四章实例代码

实例14.11workermi.cpp。实例14.14stacktem.cpp。实例14.16stkoptr1.cpp。实例14.20tempmemb.cpp。实例14.22frnd2tmp.cpp。实例14.24manyfrnd.cpp。实例14.3use_stuc.cpp。实例14.9worktest.cpp。实例14.23tmp2tmp.cpp。实例14.2student.cpp。实例14.5student.cpp。实例14.8worker0.cpp。实例14.12workmi.cpp。

2023-11-19 13:48:04 32

原创 C++PrimerPlus(第6版)中文版十三章实例代码

实例13.10usebrass2.cpp。实例13.13usebrass3.cpp。实例13.9usebrass1.cpp。实例13.2tabtenn0.cpp。实例13.5tabtenn1.cpp。实例13.12acctABC.cpp。实例13.16usedma.cpp。实例13.1tabtenn0.h。实例13.3usett0.cpp。实例13.6usett1.cpp。实例13.8brass.cpp。实例13.15dma.cpp。实例13.7brass.h。实例13.14dma.h。

2023-11-19 11:15:22 89

原创 C++PrimerPlus(第6版)中文版十二章实例代码

实例12.8placenew1.cpp。实例12.9placenew2.cpp。实例12.6sayings1.cpp。实例12.7sayings2.cpp。实例12.2strnbad.cpp。实例12.3vegnews.cpp。实例12.5string1.cpp。实例12.11queue.cpp。实例12.1strnbad.h。实例12.4string1.h。实例12.12bank.cpp。实例12.10queue.h。

2023-11-19 10:40:30 71

原创 C++PrimerPlus(第6版)中文版十一章实例代码

实例11.12usetime3.cpp。实例11.20stonewt1.cpp。实例11.3usetime0.cpp。实例11.6usetime1.cpp。实例11.9usetime2.cpp。实例11.11mytime3.cpp。实例11.17stonewt.cpp。实例11.2mytime0.cpp。实例11.5mytime1.cpp。实例11.8mytime2.cpp。实例11.14vector.cpp。实例11.21stone1.cpp。实例11.18stone.cpp。

2023-11-08 22:26:02 62 1

原创 C++PrimerPlus(第6版)中文版第十章实例代码

实例10.6usestock2.cpp。实例10.9usestock2.cpp。实例10.3usetock0.cpp。实例10.12stacker.cpp。实例10.5stock10.cpp。实例10.8stock20.cpp。实例10.11stack.cpp。实例10.1stock00.h。实例10.2stock.cpp。实例10.4stock10.h。实例10.7stock20.h。实例10.10stack.h。

2023-11-08 21:57:14 329 1

原创 DOCKER安装之后报错问题

解决安装新版docker WSL报错问题

2023-07-15 09:18:49 5797 3

原创 C++PrimerPlus(第6版)中文版第九章实例代码

实例9.1(头文件)#pragma once#ifndef COORDIN_H_#define COORDIN_H_struct polar{ double distance; double angle;};struct rect{ double x; double y;};polar rect_to_polar(rect xypos);void show_polar(polar dapos);#endif实例9.2#include<iostr

2021-07-25 18:01:52 289

原创 C++PrimerPlus(第6版)中文版第八章实例代码

实例8.1#include<iostream>inline double square(double x){ return x * x;}int main(){ using namespace std; double a, b; double c = 13.0; a = square(5.0); b = square(4.5 + 7.5); cout << "a = " << a << ",b = " << b

2021-07-25 17:54:55 188

原创 C++PrimerPlus(第6版)中文版第七章实例代码

C++PrimerPlus(第6版)中文版第七章实例代码实例7.1#include<iostream>void simple();int main(){ using namespace std; cout << "main() will call the simple() function:\n"; simple(); cout << "main() is finished with the simple() function.\n"; system

2021-05-14 21:01:31 184

原创 C++PrimerPlus(第6版)中文版第六章实例代码

C++PrimerPlus(第6版)中文版第六章实例代码实例6.1#include<iostream>int main(){ using std::cin; using std::cout; char ch; int spaces = 0; int total = 0; cin.get(ch); while (ch != '.') { if (ch == ' ') ++spaces; ++total; cin.get(ch); } cout <

2021-05-14 20:43:57 144

原创 C++PrimerPlus(第6版)中文版第五章实例代码

C++PrimerPlus(第6版)中文版第五章实例代码实例5.1#include<iostream>int main(){ using namespace std; int i; for (i = 0; i < 5; i++) cout << "C++ knows loops.\n"; cout << "C++ knows when to stop.\n"; system("pause"); return 0;}实例5.2#inc

2021-05-14 11:45:36 121

原创 C++PrimerPlus(第6版)中文版第四章实例代码

C++PrimerPlus(第6版)中文版第四章实例代码实例4.1#include<iostream>int main(){ using namespace std; int yams[3]; yams[0] = 7; yams[1] = 8; yams[2] = 6; int yamcosts[3] = { 20,30,5 }; cout << "Total yams = "; cout << yams[0] + yams[1] + yam

2021-04-28 19:22:53 236 1

原创 C++PrimerPlus(第6版)中文版第三章实例代码

C++PrimerPlus(第6版)中文版第三章实例代码实例3.1#include<iostream>#include<climits>int main(){ using namespace std; int n_int = INT_MAX; short n_short = SHRT_MAX; long n_long = LONG_MAX; long long n_llong = LLONG_MAX; cout << "int is " <

2021-04-28 19:16:12 278

原创 C++PrimerPlus(第6版)中文版第二章实例代码

C++PrimerPlus(第6版)中文版第二章实例代码实例2.1#include<iostream>int main(){ using namespace std; cout << "Come up and C++ me some time."; cout << endl; cout << "You won't regret it!" << endl; system("pause"); return 0;}实例2.2#

2021-04-28 19:10:05 351

原创 QT实现界面切换

QT实现界面切换简摘首先创建出一个QWidget界面(不带菜单栏、状态栏,如果想要实现可以手动添加,或者直接添加QMainWindow),然后在项目文件夹右键添加文件->Qt->设计师界面类->选择Widget(道理同上)->重命名,将其命名为second这样会产生如下的文件:为了便于区分两个界面,笔者进行了页面颜色的更改,读者只需理解原理即可,可根据喜好自由调节!!!在第一个界面添加pushbutton按钮,为其objectName更名为toSecondBtn

2021-03-20 15:55:16 1550

原创 QT设置控制台中文输出

QT5.14.2设置控制台中文输出首先随便进入一个工程,点击位于菜单栏的编辑-》Select Encoding选择UTF-8,点击按编码重新载入再点击菜单栏的工具-》选项文本编辑器中的-》行为-》文件编码-》默认编码设置——UTF-8,并且将UTF-8 BOM设置——如果编码是UTF-8则添加。然后将QT Creator重新启动就行了...

2021-02-11 22:58:27 1702 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除