
C++
文章平均质量分 67
CodingIsFun
function myProfile(){
let major= ['English', 'Computer Science and Technology'];
let career_goal = 'front-end development';
let motto = 'Pressing on is my only option';
}
展开
-
《Beginning C++17》-学习笔记-Chapter 11-Defining Your Own Data Types
Every object of a given class incorporates the same combination of things, specifically, the set of data values as membervariables of the class that characterize an object and the set of operations a...原创 2018-12-22 11:55:54 · 412 阅读 · 0 评论 -
《Beginning C++17》-学习笔记-Chapter 10-Program Files and Preprocessing Directives
#include "..\Power.h"/*including the file called Power.h located in the folder that includes the foler that includes this file.*/Each source file, along with the contents of all the header files ...原创 2018-12-18 09:50:58 · 315 阅读 · 0 评论 -
《Beginning C++17》-学习笔记-Chapter 09-Functions Templates
// Using a function template#include <iostream>#include <string>#include <vector>template<typename T> T larger(T a, T b); // Function template prototype// a speciali...原创 2018-12-15 09:10:26 · 368 阅读 · 0 评论 -
《Beginning C++17》-学习笔记-Chapter 08-Defining Functions
/*A function with a return type other than void must return a value of the type specified in the function header. The only exception to this rule is the main() function, where reaching the closing bra...原创 2018-12-13 17:10:31 · 325 阅读 · 0 评论 -
《Beginning C++17》-学习笔记-Chapter 07-Working with Strings
#include <iostream>#include <string>//This header of the C++ Standard Library defines the std::string type/*Type string is a compound type, which is a type that’s acomposite of severa...原创 2018-12-07 09:55:01 · 447 阅读 · 1 评论 -
《Beginning C++17》-学习笔记-Chapter 06-Pointers and References
#include <iostream>int main(){ long* pnumber1{};//the statement initializes pnumber1 with the pointer equivalent of zero, which is a special address that doesn't point to anything. long* p...原创 2018-11-27 15:25:40 · 330 阅读 · 0 评论 -
《Beginning C++17》-学习笔记-Chapter 05-Arrays and Loops
The size of an array must always be specified using a constant integer expression. Any integer expression that the compiler can evaluate at compile time may be used, though mostly this will be either ...原创 2018-11-17 23:17:46 · 353 阅读 · 0 评论 -
《Beginning C++17》-学习笔记-Chapter 04-Making Decisions
There are only two possible bool values, true and false. True and false are keywords and are literals of type bool. They aresometimes called Boolean literals.#include <iostream>int main()...原创 2018-11-12 17:27:35 · 402 阅读 · 0 评论 -
《Beginning C++17》-学习笔记-Chapter 03-Working with Fundamental Data Types
The XOR operator is used less frequently than the & and | operators. Important applications arise, however, in for instance cryptography, random number generation, and computer graphics. XOR is al...原创 2018-11-08 17:21:53 · 243 阅读 · 0 评论 -
《Beginning C++17》-学习笔记-Chapter 02-Introducing Fundamental Types of Data
#include <iostream>int main(){ //int apple_count{ 15.5 }; /*此行会导致编译错误。错误类型是narrowing conversion。*/ int apple_count{ 15 }; /*第一种赋值形式;The braces enclosing the initial value are called a bra...原创 2018-11-02 23:57:40 · 276 阅读 · 0 评论 -
《Beginning C++17》-学习笔记-Chapter 01-Basic Ideas
书名:Beginning C++17 - From Novice to Professional作者:Ivor Horton, Peter Van Weert笔记:Blocks can be placed inside other blocks—this concept is called nesting. Blocks can be nested, one within anothe...原创 2018-11-01 14:52:47 · 579 阅读 · 0 评论 -
《C++ Without Fear》学习笔记
书名:C++ Without FearA Beginner’s Guide That Makes You Feel Smart作者:Brian Overland阅读时间:2018/10/6-2018/10/20书摘+书评:An important rule of good programming style is that variables should usually...原创 2018-10-31 13:27:52 · 742 阅读 · 0 评论