- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 大学生C++教程第九版 习题(4.18)
#include <iostream> #include <string> #include <iomanip> using namespace std; int main() { int i=1; cout << "N" << setw(12) << "10*N" <&
2019-01-23 20:23:07 393
原创 大学生C++教程第九版 习题(4.17)
#include <iostream> #include <string> #include <iomanip> #include <string> using namespace std; int main() { int counter = 0, number, largest=0; while (counter < 10) {...
2019-01-23 20:00:50 442
原创 大学生C++教程第九版 习题(4.16)
#include <iostream> #include <string> #include <iomanip> using namespace std; int main() { double salary = 0.0; double rate = 10.0; int hour; cout << "请输入该员...
2019-01-23 19:52:00 597
原创 C++课堂笔记整理(STL 10-3)vector
#include <iostream> using namespace std; #include "vector" //一 数组元素的添加和删除 void main31() { vector<int> v1; //1 插入尾部元素 cout << "length:"<<v1.size()<<endl; v1.push
2019-01-23 19:18:57 103
原创 大学生C++教程第九版 习题(4.14)
#include <iostream> #include <iomanip> #include <string> using namespace std; int main() { double account, balance, charges, credits, limit,nbalance; cout << "请输入账户:"; ci...
2019-01-22 21:26:29 379
原创 大学生C++教程第九版 习题(4.13)
#include <iostream> #include <string> #include <iomanip> using namespace std; int main() { double mile, tmile = .0, aver; int gallons, tgallons; cout << "请输入本次里程数:"; cin &...
2019-01-22 21:01:27 1558
原创 C++课堂笔记整理(STL 10_21)string
#include <iostream> using namespace std; #include <string> #include<algorithm> #include <iterator> #include <numeric> //string 的初始化 void main21() { string s1 = "aaaa"...
2019-01-22 15:36:55 99
原创 C++课堂笔记整理(STL 10_2)string
#include <iostream> using namespace std; #include <string> //string 的初始化 void main21() { string s1 = "aaaa"; string s2("bbbb"); string s3 = s2;//通过拷贝构造函数 来初始化对象s3 cout <<...
2019-01-22 14:28:49 116
原创 C++课堂笔记整理(STL 10_1_1)
#include <iostream> #include <algorithm> #include <vector> using namespace std; //一、基础类型指针 void main11() { vector<int> v1; //1、容器:把你的元素copy到容器中 v1.push_back(1); v1.push_...
2019-01-22 10:39:52 129
原创 C++整理
push_back的用法 https://blog.csdn.net/leo_csdn_/article/category/7932815 STL博客(很全) https://blog.csdn.net/qq_36136497/article/details/81041863 STL快速入门 https://blog.csdn.net/leos_blog/article/detai...
2019-01-18 20:19:23 129
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人