C++面向对象

类 & 对象 类是对象的抽象和概括,而对象是类的具体和实例

CPP

C++入坑记(3)

变量初始化问题 当局部变量被定义时,系统不会自动对其初始化; 当全局变量被定义时,系统会初始化为下列值: 数据类型 初始化默认值 int 0 float 0 double 0 char ‘\0’ pointer NULL

CPP

工具小整合

C++入坑记(2)

函数,默认参数的使用 在C++中,允许在自定义函数的形参列表中,给形参一个默认的值,这样在调用的时候如果有实参,那么按照实参传递给形参的方法使用;若调用的时候没有指定对应的实参,则形参将使用默认值。 由于参数的传递顺序是从右至左入栈,所以有默认值的参数必须在放在形参列表的最右边!

CPP

ACM入门(占个位)

A+B for Input-Output Practice(using C++) 1. Problem Description Your task is to Calculate a + b. Too easy?! Of course! I specially designed the problem for acm beginners. You must have found that some problems have the same titles with this one, yes, all these problems were designed for the same aim Input The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line. Output For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input. Sample Input 1 61 20 Sample Output 721

Algorithm

C++入坑记

C++关键字 https://www.runoob.com/w3cnote/cpp-keyword-intro.html asm else new this auto enum operator throw bool explicit private true break export protected try case extern public typedef catch false register typeid char for return union const friend short unsigned const_cast goto signed using continue if sizeof virtual default inline static void delete int static_cast volatile do long struct wchar_t double mutable switch while dynamic_cast namespace template …

CPP

Requests库入门(2)

requests库入门实操 京东商品页面爬取 亚马逊商品页面的爬取 百度/360搜索关键字提交 IP地址归属地查询 网络图片的爬取和储存

Python

优雅的Markdown(2)

Markdown编辑器使用-MarkdownPad2 imgur已被GFW干掉 快捷键 粗体 ctrl+B 斜体 ctrl+I 引用 ctrl+Q 代码 ctrl+K 超链接 ctrl+L 图片 ctrl+G 无序列表 ctrl+U 有序列表 ctrl+shift+O 水平标尺 ctrl+R 时间戳 ctrl+T 撤销 ctrl+Z 重做 ctrl+Y

简单爬虫

Requests库入门 http://www.python-requests.org/en/master/ requests Requests库的7个主要方法 方法 说明 requests.request() 构造一个请求,支撑以下各方法的基本方法 requests.get() 获取HTML网面的方法 requests.head() 获取HTML网页头部信息的方法 requests.post() 向HTML网页提交POST请求的方法 requests.put() 向HTML页面提交PUT请求的方法 requests.patch() 向HTML网页提交局部修改请求 requests.delete() 向HTML网页提交删除请求

Python

网易云音乐外链插入测试

网易云音乐

blog
114151617