自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (10)
  • 收藏
  • 关注

原创 循环06~~~10

循环-06#include#includeint main(){using namespace std;string s;int num = 0;cout while (cin>>s){num++;if (cin.get() == '\n')break;}cout return 0;}循环-07#include

2015-07-19 18:42:22 282

原创 chapter18test4

不知道为什么我找到书上程序清单16.5没有找到outint()函数,我也懒得去找到底题目指定的是哪一个,这本书的最后一题就这样不完美的省略啦,还有chapter14一章的内容没有看完,剩下几天时间抓紧看看。

2015-07-16 21:29:48 252

原创 chapter18test3

#includeusing namespace std;long double sum = 0.0;void sum_value(){}templateT sum_value(const T&t){sum += t;return sum;}templateT sum_value(const T&t, const Args&...args){sum

2015-07-16 21:10:11 234

原创 chapter18test2

这个程序最神奇的地方就是每一个左值运算都要先定义一个新的类对象 pi=new info  ,我试了用info *pi=new info不行,省略这个类定义无法运行程序。真实稀罕,不过参考了别人的以后稍微做了修改便运行出理想结果。以下是程序cpmv.h#include#includeusing namespace std;class cpmv{public:struc

2015-07-16 20:35:48 227

原创 chapter18test1

#include#includetemplateT average_list(std::initializer_list line){T static total = 0; int i = 0;for (auto p = line.begin(); p != line.end(); p++, i++)total += *p;return total / i;}

2015-07-16 16:10:14 245

原创 chapter17test5

#include#include#include#include#include#includeusing namespace std;void show(const string &s);int main(){vectorlist,list1,list2;ifstream fin1("pat.dat");ifstream fin2("mat.dat

2015-07-11 18:08:20 238

原创 chapter17test4

#include#include#includeint just(char);int main()  //这个程序是参考别人的,这里用的string temp很好,刚开始我准备用char,但是没有走通。{               //另外,fin.good()和fin.eof()也好。using namespace std;ifstream fin1("fin1.t

2015-07-11 16:50:38 198

原创 chapter17test3

#include#include#include#includeusing namespace std;int main(){//输入文件夹名称的时候记得末尾带上.txt要不然文件打不开。cout string oname; cin >> oname;ifstream fout(oname.c_str());cout string cname; ci

2015-07-11 13:35:00 227

原创 chapter17test2

#include#includeint main(){using namespace std;ofstream fout;fout.open("jar.txt");cout char ch;while (cin.get(ch)&&ch!='q')fout return 0;}

2015-07-11 13:05:06 274

原创 chapter17test1

#includeint main(){using namespace std;char ch; int count = 0;cout while (cin>>ch){cout if (ch == '$')break;count++;}cout return 0;}

2015-07-10 10:55:41 244

原创 循环-01~~~05

循环-01#include#includeint main(){using namespace std;cout int a, b; int tot = 0;cout if (cin >> a >> b){for (int i = a; i {tot += i;cout if ((i - a) % 5 == 4)cout }}

2015-07-09 22:49:55 255

原创 字符串-05~~~07

字符串-05#includeint main(){using namespace std;char line[30];int move;cout cin.get(line, 30);cin >> move;char *t=new char[30];int n = strlen(line);for (int i = 0; i {if (i

2015-07-08 19:49:47 323

原创 7.7

今天终于友搞定了一章,虽然还有一道题目没有完美的实现出来,但是明天我还会继续钻研的,想想我来杭州都有一年整的时间,虽然没有成就,但是自己感觉变化还是有的.以前做事总是不能专心,没事喜欢看看手机,根本坐不下去看书什么的,那时候也不知道以后自己想要什么,就是混日子。现在,看着身边有些师兄每天看论文,写论文,挺佩服他们。我也尝试过看了几天论文,太煎熬了,看的久了觉得人生没有一点乐趣,郁闷之后我也考虑了以

2015-07-07 22:19:42 270

原创 chapter16test10

这一题说实话我都没有看的太明白。。。我没有做到题目要求的用指针参数来定义三个比较函数,我是按照书上原来的worsethan()修改的,我会再试试指针方法,有成果在回来改程序,我是一个自强不息的水货!fighting#include#include#include#include#includeusing namespace std;struct review{s

2015-07-07 22:14:39 305

原创 chapter16test9

测试效果挺好的,时间明显缩短了#include#include#include#include#include#includeusing namespace std;int main(){srand(time(0));int const size = 100000;vectorvi0(size);for (int i = 0; i vi0[i

2015-07-07 16:58:55 325

原创 chapter16test8

#include#include#include#includeusing namespace std;void show(string &s);int main(){vectorlist1; vectorlist2;string temp;cout while (getline(cin, temp) && temp != "quit")list1.

2015-07-07 15:35:23 270

原创 chapter16test7

#include#include#includeusing namespace std;vector Lotto(int max,int choice);void show(int );int main(){cout int m, n; vector winner;cout > m;cout > n;winner = Lotto(m, n);fo

2015-07-07 11:24:34 249

原创 chapter16test6

这一题的意思让咱们把原来的class queue删掉,在头文件写#include,就可以直接用人家标准的进站出站和各种功能,我看了好久没明白,后来在大神的程序中明白了,大神就是厉害,水货,加油啦customer.h#ifndef customer_H_#define customer_H_class customer{private:long arrive;int

2015-07-07 10:00:47 270

原创 chapter16test5

#include#include#includeusing namespace std;templateint reduce(T ar[], int n);int main(){long ar[8] = { 12309, 12307, 12306, 12305, 12307, 12308, 12305, 12306 };string say[5] = { "Bi

2015-07-06 18:45:22 277

原创 chapter16test4

#include#include#includeusing namespace std;int reduce(long ar[], int n);int main(){long ar[8] = { 12309, 12307, 12306,12305, 12307, 12308,12305,12306 };int num = reduce(ar, 8);cout

2015-07-06 18:24:45 224

原创 chapter16test3

这个题目用了好长时间,差点我都要放弃了,幸好把书看明白了,我的猜字游戏只用了三个单词:apiary,bettle,cereal;程序主要修改的地方是:文件读取+push_back()+size(),程序在下边#include#include#include#include#include#include#includeusing namespace std;in

2015-07-06 15:53:12 268

原创 chapter16test2

#include#include#include#includeusing namespace std;string change(string str);bool judge(string &str);int main(){cout string str;while (getline(cin, str) && str != "quit"){st

2015-07-06 10:10:12 207

原创 chapter16test1

#include#include#include#includeusing namespace std;bool judge(string &str);int main(){cout string str; while (getline(cin, str) && str != "quit"){if (judge(str))cout else

2015-07-06 09:42:24 207

原创 chapter5test4

累死我了,整个晚上都在写这一个程序,总算是出来了,thank Godnessssale.h#ifndef SALE_#define SALE_#include#includeclass sale{public:enum{month=12};private:double gross[month];int year;public:class ba

2015-07-01 22:48:08 460

原创 chapter15test3

mean.h#include#includeclass base :public std::logic_error{private:double x; double y;public:base(double a = 0, double b = 0) :x(a), y(b),logic_error(0){}double xr(){ return x; }dou

2015-07-01 15:53:22 279

原创 chapter15test2

这个土木我看了好久才看明白,自己尝试着写出来的程序,和大神的对照了一下,差不多,和树上的也相似只是在头文件里面添加了一个exception, logic_error,程序如下:mean.h#include#includeclass bad_hmean:public std::logic_error{private:double x;double y;public

2015-07-01 15:41:56 249

原创 chapter15test1

这一题跟树上的程序差不多,只是要求tv与remote互为友元,并且在remote中定义一个新的状态变量,我用的state,并且在tv中定义了一个change(remote &),以下是程序,因为所有的函数我都试了一下,显得程序比较长。#includetv.h#include#ifndef TV_H_#define TV_H_class tv{friend class r

2015-07-01 12:59:48 336

github-recovery-codes(1).txt

github-recovery-codes(1).txt

2021-12-12

test-USART1.zip

test-USART1.zip

2021-06-03

stm32 CAN1 CAN2 loopback

an example of loop-back communication in CAN1 and CAN2 of STM32f767 board

2018-05-18

stm32 TIM input capture and create PWM wave

it consist of two project: one for Timer input capture, another for Timer PWM wave

2018-04-29

KNN algorithm

a short document to describe KNN algorithm, a silde

2018-04-24

stm32 TIM input capture

a simple example to use stm32's TIM input capture function

2018-04-23

Configure Eclipse for STM32 development

An instruction paper to help you setup Eclipse and configure its environments for creating stm32 projects, at the end, a simple LED test is available to verify the whole operation.

2017-12-09

LSD a line detection algorithm

This is a simple example for explaining LSD algorithm, include a paper , a script and some configure files.

2017-10-22

ELM极限学习机

有几篇介绍ELM算法的论文,均为算法的基础部分分析,通过论文可以把握算法的精髓

2016-06-11

数字图像处理 冈萨雷斯 中文第二版

冈萨雷斯的这本书内容详细,由浅入深,对初学者了解图像处理很有帮助,而且书里涵盖了图像处理的各个方面,让读者对图像有全面的认知。中文版的翻译也是极好的,译著忠实于原书,更易读懂。

2015-11-26

空空如也

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

TA关注的人

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