Skip to content

Commit

Permalink
revert the addition of ch site links
Browse files Browse the repository at this point in the history
  • Loading branch information
pezy committed Mar 12, 2015
1 parent 2e47983 commit 61fdd42
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ch02/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Yes.It is legal.Printed:
(c): valid.
(d): invalid. a reference must be initialized.
```
If you want know more ,you can read [this](http://www.zhihu.com/question/28039779). If you don't understand it , you can read it again when you read fourth chapter.

##Exercise 2.16
>Which, if any, of the following assignments are invalid? If they are valid, explain what they do.
Expand Down Expand Up @@ -519,7 +519,6 @@ j2 is const int.
k2 is const int&.

[Here](ex2_35.cpp) is the code.
[It](http://segmentfault.net/q/1010000002568358) is useful to you if you read it.

##Exercise 2.36
>In the following code, determine the type of each variable
Expand All @@ -535,8 +534,6 @@ decltype((b)) d = a;
`c` is an int, `d` is a referance of `a`.
all their value are `4`.
If you want konw more about `decltype` , [this](http://segmentfault.net/q/1010000002559351) maybe help you.
##Exercise 2.37
>Assignment is an example of an expression that yields a reference type. The type is a reference to the type of the left-hand operand. That is, if i is an int, then the type of the expression i = x is int&. Using that knowledge, determine the type and value of each variable in this code:
```cpp
Expand Down

0 comments on commit 61fdd42

Please sign in to comment.