自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 第10章第1题

bank.h#ifndef BANK_H_#define BANK_H_#includeclass bank{ enum { Len = 6 }; //账号为固定6 private: std::string name; char account[Len]; double me; public: bank(const std::string& nm = "默认账户", const cha

2017-03-09 20:01:00 245

原创 第九章第4题

头文件sale.hnamespace SALE{ const int Len = 4; struct sale { double sales[Len]; double avg; double max; double min; }; void setSale(sale& s , const double* value , int lenght); void setSale

2017-03-09 20:00:57 169

原创 第九章2-3题

第2题#include#includeusing namespace std;void strCount(const string& str);int main(){ int i = 1; string nx; while(1) { cout getline(cin,nx); if(nx == "q") break; else strCount(

2017-03-09 20:00:55 202

原创 第九章第1题

头文件golf.h#ifndef GOLF_H_#define GOLF_H_const int Len = 40;struct golfs{ char fullName[Len]; int handicap;};void setGolf(golfs& g , const char* name , int hc);int setGolf(golfs& g);void resetGolf(go

2017-03-09 20:00:52 306

原创 第八章4-7题

第四题#include#includeusing namespace std;struct stringy{ char* str; int Len;};void set(stringy& st , const char* body);void showInfo(const stringy& st , int times = 1); //默认输出1次void showInfo(const ch

2017-03-09 20:00:49 219

原创 第8章 1-3题

第一题#includeusing namespace std;void printInfo(const char* info , int funtionType = 0);int main(){ char name[10] = {"Good day!"}; for(int i = 0 ; i printInfo(name,i); return 0;}void printInfo(co

2017-03-09 20:00:46 222

原创 第7章 9-10题

第9题#includeusing namespace std;const int maxLen = 30;struct student{ char fullName[maxLen]; char hobby[maxLen]; int oopLevel;};int getInfo(student* pa , int lenght);void display_1(student someone);

2017-03-09 20:00:43 220

原创 第7章 7-8题

第7题#includeconst int MAX = 5;using namespace std;const double* fill_array(double ar[] , int limit); //填充数组函数void show_array(const double ar[] , const double* last); //显示数组void change_array(int r , d

2017-03-09 20:00:40 231

原创 第7章4-6题

第4题#includelong double probability(int all , int right);int main(){ using namespace std; int nu = 0; int choose = 0; cout cin>>nu>>choose; long double commonPro = probability(nu,choose); cout

2017-03-09 20:00:38 394

原创 第七章1-3题

第一题#includedouble avg(double x , double y);int main(){ using namespace std; int x = 0; int y = 0; while(1) { cout cin>>x; if(!cin) break; cout cin>>y; if(!cin) break;

2017-03-09 20:00:35 217

原创 C++PrimerPlus中文版(第六版)编程题答案

史前巨坑,慎入!C++primerPlus中文版(第六版)编程答案系统ubuntukylin14.04 编译器g++4.8.21所有程序均编译通过,运行良好2未在其他系统上测试,也未使用其他编译器测试3有生之年一定填完此坑!第七章10/101-3题,4-6题,7-8题,9-10题第八章7/71-3题,4-7题第九章4/4第1题,2-3题,第4题第十章8/8第1题,第2题,第3题,第4题,第5题,第

2017-03-09 20:00:32 824

原创 蛋疼的QTextEdit删除/右键菜单

对于QT编程。QTextEdit是一个很普通的类,这个类提供了基本的文本编辑,对于一般的文本编辑,这个类提供了一系列槽和函数来实现诸如复制,剪切,undo,redo等操作,但缺有2个灰常蛋疼的地方  首先 :删除/delete  对于这样一个很基本的文本操作,QTextEdit缺没有提供对应的槽或者函数(也许有,但我确实没找到。。),翻遍了各种文档,Qt确实有这样一个函数removeSelecte

2017-03-09 20:00:29 4624 2

空空如也

空空如也

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

TA关注的人

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