===================
== 颢阳's Blog ==
===================
blog for everything

Cpp Primer Chapter 5

cpp cpp primer
This chapter looks in detail at the statements supported by C++. Statements are executed sequentially. Except for the simplest programs, sequential execution is inadequate. Therefore, C++ also defines a set of flow-of-control statements that allow more complicated execution paths. Simple Statements Null Statements The simplest statement is the empty statement, also known as a null statement. A null statement is a single semicolon: ;. A null statement is useful where the language requires a statement but the program’s logic does not. Read more...

Cpp Primer Chapter 4

cpp cpp primer
This chapter talks about expression, which is composed of one or more operands and yields result when it is evaluated. The simplest form of an expression is a single literal or variable. The result of such an expression is the value of the variable or literal. More complicated expressions are formed from an operator and one or more operands. Fundamentals Precedence and Associativity Operands of operators with higher precedence group more tightly than operands of operators at lower precedence. Read more...

Cpp Primer Chapter 3

cpp cpp primer
Namespace using Declarations A using declaration lets us use a name from a namespace without qualifying the name with a namespace_name::prefix. A using declaration has the form: using namespace::name; For example: #include <iostream>using std::cin; int main() { int i; cin >> i; // ok: cin is a synonym for std::cin cout << i; // error: no using declaration std::cout << i; // ok return 0; } Code inside headers ordinarily should not use using declarations. Read more...

Cpp Primer Chapter 2

cpp cpp primer
C++ language specifics Python check types at run time, whereas C++ is statically typed language — type-check is done at compile time. As a consequence, the compiler must know the type of every name used in the program. Primitive Buit-in Types C++ defines a set of primitive types that include the arithmetic types and a special type named void. The arithmetic types represent characters, integers, boolean values, and floating-point numbers. The void type has no associated values and can be used in only a few circumstances, most commonly as the return type for functions that do not return a value. Read more...

Cpp Primer Chapter 1

cpp cpp primer
Starting from today, I will read and write notes for C++ primer. I will only write notes that I think that is important, so not all the contents will be covered. Design a bookstore Our store keeps a file of transactions, each of which records the sale of one or more copies of a single book. Each transaction contains three data elements: 0-201-70353-X 4 24.99 The first element is an ISBN (International Standard Book Number, a unique book identifier), the second is the number of copies sold, and the last is the price at which each of these copies was sold. Read more...

贩卖焦虑教程

中文 知乎 焦虑
今天偶尔打开知乎随便看了看主页给我推荐的内容,发现一个很有意思的现象–基本我能停留大概2秒以上的内容都是贩卖焦虑的软文。于是我开 Read more...

Emailing as a Course

course email
So it’s my last semester of work in NYU, and I chose to take an independent study class with Prof. Yury Dvorkin. He is very busy on his research works, and I didn’t really expect too much from this course (it’s only 1.5 credit), so we agreed on meeting once per two weeks. Send everything using email isn’t bad at all, it’s even more efficient In order to provide some help in case he was busy, he delegated an PhD student named Samrat supervised by him. Read more...

2021 H1b Lottery

中文
今天是抽签放出结果的第一个工作日,我们公司用的是Fragomen律所负责申请工作签证。美国的工作签证简称h1b visa, 是给美国的外来人口工作的一种 Read more...

关闭朋友圈

中文
关闭朋友圈大概有一周了,不知道是不是我的心理作用,感觉比之前过的更加充实了。 什么时间,为什么关 大概是一个礼拜之前关的。原因其实没有什么特别的 Read more...

How to Talk

After I got my job offer, I have done multiple mock interviews with different people. I guess I miss the feeling of being interviewed, as well as interviewing others. Throughout the interview experiences with others, I have somehow figured out a way of talking with people. People you know I love talking with people I know beforehand. It’s ususally a great experience to talk with them, since you know them well and you can avoid saying something stupid but you are unaware of. Read more...
1 of 3 Next Page