状态机高阶讲解-11

2099
01:27:45,230 --> 01:27:46,374
不用着急关掉

2100
01:27:46,374 --> 01:27:49,044
那我们现在开始配哪一个

2101
01:27:49,044 --> 01:27:50,380
刚才是

2102
01:27:50,910 --> 01:27:52,414
改名字嘛

2103
01:27:52,414 --> 01:27:52,978
对不对

2104
01:27:52,978 --> 01:27:55,235
现在我们来改另外一个地方

2105
01:27:55,235 --> 01:27:56,740
就是配置这个地方

2106
01:27:58,030 --> 01:27:59,280
配置这里

2107
01:27:59,280 --> 01:27:59,780
然后

2108
01:28:00,270 --> 01:28:01,460
选中这个

2109
01:28:02,150 --> 01:28:02,840


2110
01:28:04,050 --> 01:28:04,960
这同样

2111
01:28:05,610 --> 01:28:07,704
这个名称它叫缺省配置

2112
01:28:07,704 --> 01:28:09,590
我们也把它改掉

2113
01:28:09,870 --> 01:28:13,085
我们改叫Release

2114
01:28:13,085 --> 01:28:13,580
就是

2115
01:28:14,590 --> 01:28:16,310
发布的意思

2116
01:28:19,560 --> 01:28:20,989
名字叫发布

2117
01:28:20,989 --> 01:28:22,990
这个组件是

2118
01:28:23,270 --> 01:28:24,770
要发布的组件

2119
01:28:25,880 --> 01:28:26,736
然后呢

2120
01:28:26,736 --> 01:28:29,020
在初始化这个地方

2121
01:28:31,950 --> 01:28:38,450
然后这里有几个区,一个初始实例这个区

2122
01:28:39,840 --> 01:28:41,131
那这个区的话

2123
01:28:41,131 --> 01:28:43,928
下面你看它有显式、派生

2124
01:28:43,928 --> 01:28:47,156
我们就是显式这个了

2125
01:28:47,156 --> 01:28:50,814
因为我们上面没有超类嘛

2126
01:28:50,814 --> 01:28:51,460
对吧

2127
01:28:52,800 --> 01:28:53,433
然后呢

2128
01:28:53,433 --> 01:28:54,701
下面有个default

2129
01:28:54,701 --> 01:28:55,969
这个就是缺省

2130
01:28:55,969 --> 01:28:57,660
我们把这个

2131
01:28:58,340 --> 01:28:59,398
展开

2132
01:28:59,398 --> 01:29:00,810
然后这里

2133
01:29:02,750 --> 01:29:03,820
有一个

2134
01:29:04,780 --> 01:29:08,210
这个,就是说对应的是这个

2135
01:29:08,540 --> 01:29:10,660
这样的一个

2136
01:29:10,980 --> 01:29:14,253
缺省的一个实例

2137
01:29:14,253 --> 01:29:14,690
对吧

2138
01:29:15,590 --> 01:29:16,710
选中它

2139
01:29:18,020 --> 01:29:19,380
然后下面这个

2140
01:29:20,370 --> 01:29:21,820
这个有了

2141
01:29:23,300 --> 01:29:26,520
然后在这个设置这个地方

2142
01:29:27,470 --> 01:29:27,691


2143
01:29:27,691 --> 01:29:30,348
还要设置,设置这个地方

2144
01:29:30,348 --> 01:29:33,670
然后我们开始来设置这个环境了

2145
01:29:33,950 --> 01:29:35,640
设置它那个

2146
01:29:36,430 --> 01:29:36,988
环境

2147
01:29:36,988 --> 01:29:38,662
你看我们环境

2148
01:29:38,662 --> 01:29:39,500
这里是

2149
01:29:41,530 --> 01:29:43,830
MSVC对吧

2150
01:29:44,110 --> 01:29:46,704
就是微软这个MSVC

2151
01:29:46,704 --> 01:29:48,500
然后其他下面什么这些我们

2152
01:29:49,240 --> 01:29:51,696
就先不动了

2153
01:29:51,696 --> 01:29:53,260
因为这个的话

2154
01:29:55,830 --> 01:29:56,827
没有问题

2155
01:29:56,827 --> 01:29:58,023
就先不要动它

2156
01:29:58,023 --> 01:29:59,420
我们就先不管了

2157
01:30:00,150 --> 01:30:00,343


2158
01:30:00,343 --> 01:30:02,089
其他的就先不管了

2159
01:30:02,089 --> 01:30:03,446
包括状态的实现

2160
01:30:03,446 --> 01:30:05,773
你看,有可重入、平铺什么的

2161
01:30:05,773 --> 01:30:07,713
这个一会我们再说

2162
01:30:07,713 --> 01:30:09,070
这个平铺、可重用

2163
01:30:09,070 --> 01:30:11,010
就是说的是那个

2164
01:30:12,190 --> 01:30:14,256
是面向对象还是面向过程

2165
01:30:14,256 --> 01:30:15,290
就是条件语句

2166
01:30:15,290 --> 01:30:17,770
还是状态模式的

2167
01:30:18,710 --> 01:30:20,560
这个我们就先不管

2168
01:30:22,870 --> 01:30:23,820
然后看

2169
01:30:24,570 --> 01:30:25,626
确实没问题

2170
01:30:25,626 --> 01:30:26,858
环境什么的

2171
01:30:26,858 --> 01:30:28,443
你看环境有很多种

2172
01:30:28,443 --> 01:30:28,795
对吧

2173
01:30:28,795 --> 01:30:30,380
我们的编译器嘛

2174
01:30:30,660 --> 01:30:34,212
我们只装了这个编译器

2175
01:30:34,212 --> 01:30:38,210
微软的编译器,就是VS2019带的

2176
01:30:39,550 --> 01:30:40,381
没有问题

2177
01:30:40,381 --> 01:30:41,420
那我们就OK

2178
01:30:45,490 --> 01:30:45,776

2179
01:30:45,776 --> 01:30:50,080
刚才我们主要是设置了编译的环境

2180
01:30:51,130 --> 01:30:53,430
还有定义了

2181
01:30:53,870 --> 01:30:55,179
构造函数

2182
01:30:55,179 --> 01:30:55,834


2183
01:30:55,834 --> 01:30:57,580
构造函数就是说

2184
01:31:00,570 --> 01:31:02,618
里面就有一行代码

2185
01:31:02,618 --> 01:31:03,363
就是说Hello这样

2186
01:31:03,363 --> 01:31:06,716
实际上意思就是,我这个对象有了

2187
01:31:06,716 --> 01:31:08,020
就告诉一声

2188
01:31:08,020 --> 01:31:09,137
有了这个对象

2189
01:31:09,137 --> 01:31:09,510
对吧

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值