自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 问答 (2)
  • 收藏
  • 关注

原创 C++primer第六章习题答案

#include<iostream> #include<vector> #include<string> #include<stdexcept> #include"6.h" using namespace::std; //6.3 //int fact(int val) { // if (val == 0 || val == 1) return 1; // else { // /*int a = 1; // for (i...

2020-07-06 18:15:47 535

原创 C++ primer 5th edition 第五章代码手写

#include<iostream> #include<vector> #include<string> #include<stdexcept> using namespace::std; int main() { //5.5 俄式五分制! /*int a; vector <int> grade= {1, 2, 3, 4, 5}; while (cin >> a && a > 0) { ...

2020-06-21 09:21:50 153

原创 C++ primer 5th edition 第三章代码手写

#include <string> #include <iostream> #include<cstdlib> #include <vector> #include <cstring> using namespace::std; //3.36 bool compare(int *const pb1, int *const pe1, int *const pb2, int *const pe2) { if ((pe1 - pb1) !...

2020-06-03 18:35:18 119

原创 C语言重难点复习回顾1

C语言重点复习回顾1不是新手教程 不是新手教程 而是最近自己重新复习而记录下的概念 1.+++i 先运算再赋值 2.i++ 先赋值在运算只作用于变量不能作用于常量或者表达式 3.逗号运算符(for语句) 单独使用可以把初始化代码放在一行 I=1; J=2 等价于i=1,j=2; 从左到右逐个计算,值为最后一个表达式的值 赋值运算符的优先级比逗号运算符高,所以写成a=3,5即a=3;5; a=(b=...

2019-12-21 20:46:05 478

空空如也

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

TA关注的人

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