C++自修入門實境秀、C++ Primer 5版研讀秀 9/ ~頁68 Dealing with Types、Type Aliases- 20...





0:35

2.5. Dealing with Types 2.5 處理型別(對型別操作的撇步,操作型別時要注意的)

9:50

The other source of complication is that sometimes it is hard to determine the exact type we need. Doing so can require us to look back into the context of the program.

複雜性的另一個來源是,有的時候你很難決定我們需要的到底是哪個型別。13:00要這麼做,我們可能得回頭查看程式的情境。

so ⑧找對主詞 →

to determine the exact type we need

to look back into the context of the program 就是 ⑨對錯問題,回到二作 用「對」了type或「錯」了



2.5.1. Type Aliases 型別的別名(型別的綽號)16:20

27:50

typedef double wages;

typedef wages base, *p;

double db = 3.14;

p p1 = &db;

23:50「p」是 double*(即double型別的指標)的化名/別名/綽號



44:30

頁68

declarators 宣告器 ;宣告單元/部分

Pointers, const , and Type Aliases 54:55 1:28:00

char ch = 'a';

typedef char *pstring;

using pstring1=char*;

pstring p = & ch;

pstring p1 = &ch;

if (p!=p1)

{

cout << "hello world!\n";

}





char ch = 'a';

typedef char *pstring;

using pstring1=char*;//以上2個是一樣的

pstring p = & ch;

pstring p1 = &ch;

char* p2 = &ch;//以上3個都是一樣的

if (p==p2)

{

cout << "hello world!\n";

}



2.5.2. The auto Type Specifier

auto型別指定符



1:4:00我的海軍服役經驗,讀原文技術手冊。恢復美樂軍艦手動操俥技術。沒想到不到八年抗戰,該艦就除役了。

1:13:10 班「跤仔」(嘍囉、下屬、部下)



1:24:10「跤」應是「腳」的後起字。



1:32:40constexpr到底修飾誰? 找對主詞 九陽神功第8招



1:18:40 這次更新後,影音終於同步了,不再亂了。感恩感恩 讚歎讚歎 南無阿彌陀佛

留言

熱門文章