- 博客(10)
- 收藏
- 关注
原创 杭电OJ 1003 Max Sum
#include <iostream>#include <vector>using namespace std;int main(){ int numRow; cin >> numRow; int num = numRow; vector<vector<int>> A; while (numRow--) {...
2019-09-26 10:43:54 196
转载 常用函数strcpy strcat strcmp strlen memcpy memset
https://blog.csdn.net/u012611878/article/details/79222918
2018-09-10 13:24:59 247
原创 C++Primer Chapter_2
//1#include <iostream>#include <string>using namespace std;int main (){ string name; string address; cout << "Enter your name: " << endl; cin >> name; cout ...
2018-09-09 11:21:37 281
原创 Matlab数据可视化
二维图形绘制MATLAB基本的二维图形包括线型(Line Plots)、散点型(Scatter Plots)、条形(Bar Plots)、极坐标型(Polar Plots)及矢量图(Vector Fields)。(MATLAB的书买的太鸡肋了,里面东西都不全,help才是王道)plot指令1.种类plot(x,y) plot (y) plot (z) plot (A) ...
2018-09-05 09:24:07 5199 1
原创 Beam程序
C++ NULL指针在变量声明的时候如果没有准确的指针赋予,可以为变量赋一个空指针NULL。NULL指针是一个值为0的常量。 gsMultiPatch<> * p_patchWithInterface = NULL; 什么是程序接口https://blog.csdn.net/liubing8609/article/details/78907433/ ...
2018-08-31 15:24:34 411
转载 转:C++读取EOF文件
文章出处:http://blog.chinaunix.net/uid-27034868-id-3758629.html对于文本文件,当我们使用eof()判断文件是否结束时会多读一次(c语言也有类似的情况),或许你有遇到过这种情况。先看下面的例子吧:假设输入文件in.txt的内容为:abc则输出结果是:abcc明明使用了eof()判断了,为什么还是这样的呢?原因是这样的,因为...
2018-08-10 10:51:09 2028
原创 C++ Primer Plus Chapter5--循环和关系表达式
//1#include <iostream> using namespace std;int main(){ int number_1 = 0; int number_2 = 0; int SmallNumber = 0; int BigNumber = 0; int sum = 0; cout << "Enter two number:...
2018-08-02 14:23:38 260
原创 C++ primer plus Chapter4--复合类型 程序练习
//1(string)#include <iostream>#include <string> using namespace std;int main(){ string FirstName; string LastName; string grade; int age; cout << "What is your ...
2018-08-01 10:25:35 530
原创 C++ Primer Plus Chapter 4 --复合类型(笔记)
1. char类型char类型是专为存储字符而设计的,通过使用字母的数值编码解决储存问题。最常见的符号集是ASCII字符集,字符集中的字符用数值编码表示(ASCII码),例如:A的编码是65,M的编码是77.#include <iostream>using namespace std;int main(){ char ch; cout << "E...
2018-07-13 19:48:13 381
原创 C++ Primer Plus 第三章
//2对于全局变量 const double pound = x,其中x的取值要是小数形式,在编译下分数不能转换成小数,结果出错。问题:在vs2012编译环境下,浮点数的分数表示。 //4#include <iostream>using namespace std;int main(){ long second = 0; int minute = ...
2018-07-13 14:27:56 132
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人