1
00:00:00,000 --> 00:00:00,280

2
00:00:00,280 --> 00:00:02,240
>> DAVID Malan: Hebu sasa kuboresha
mpango huu kidogo zaidi.

3
00:00:02,240 --> 00:00:06,510
Je, si ni kuwa nzuri kama toupper inaweza
herufi kama Herufi za chini, na

4
00:00:06,510 --> 00:00:08,880
kama si lowercase, kupita
hivyo kwa njia ya kubadilika?

5
00:00:08,880 --> 00:00:12,110
Kwa maneno mengine, naweza kuchukua nafasi ya
yangu kama-kingine kuzuia na

6
00:00:12,110 --> 00:00:13,960
simu moja kwa toupper?

7
00:00:13,960 --> 00:00:16,000
>> Naam, kwa kujibu swali hili,
Ningependa bora kushauriana

8
00:00:16,000 --> 00:00:17,630
nyaraka kwa toupper.

9
00:00:17,630 --> 00:00:22,100
Kwa kufanya hivyo, napenda kufungua terminal kubwa
dirisha nje ya gedit, na

10
00:00:22,100 --> 00:00:26,060
basi aina ya mtu toupper, na hivyo
ikimaanisha kwamba Ningependa kufungua

11
00:00:26,060 --> 00:00:29,060
kinachojulikana mtu ukurasa kwa
kazi toupper.

12
00:00:29,060 --> 00:00:31,580
Juu ya kupiga kuingia, naona
screen kama hili.

13
00:00:31,580 --> 00:00:34,750
Na sasa taarifa kwamba wanaonekana kuwa
pamoja nyaraka kwa toupper

14
00:00:34,750 --> 00:00:37,010
juu na kwamba kwa tolower.

15
00:00:37,010 --> 00:00:38,010
Lakini hakuna jambo.

16
00:00:38,010 --> 00:00:41,640
>> Utagundua chini ya synopsis kwamba
Mimi nina aliwakumbusha kwamba, kwa kweli, kwa kutumia hii

17
00:00:41,640 --> 00:00:45,220
kazi, mimi lazima ni pamoja na
header file ctype.h.

18
00:00:45,220 --> 00:00:49,520
Chini ya kwamba, unaweza kuona kwamba toupper ni
alitangaza kama kurudi int na

19
00:00:49,520 --> 00:00:52,720
kukubali int, ambayo ni kidogo
curious, tangu hivi sasa, nimekuwa

20
00:00:52,720 --> 00:00:54,370
kufanyia chars tu.

21
00:00:54,370 --> 00:00:55,310
Lakini hiyo ni sawa.

22
00:00:55,310 --> 00:00:59,070
Ni zinageuka kuwa hii ni
mkataba huo, na bado tunaweza kutumia c kama

23
00:00:59,070 --> 00:01:01,990
ingawa ni char, ingawa
ni alitangaza kama int.

24
00:01:01,990 --> 00:01:05,850
>> Sasa, katika maelezo hapa, naona ya kuwa
toupper waongofu barua c kwa

25
00:01:05,850 --> 00:01:07,980
uppercase kama inawezekana.

26
00:01:07,980 --> 00:01:11,520
Na chini ya thamani ya kurudi, naona ya kuwa
thamani akarudi ni ile ya

27
00:01:11,520 --> 00:01:15,320
barua waongofu, au c, kama
kubadilika hakuwa iwezekanavyo.

28
00:01:15,320 --> 00:01:17,120
Na kuna ufahamu
Mimi nilikuwa kutafuta.

29
00:01:17,120 --> 00:01:21,060
Kama c ni si, kwa kweli, lowercase
barua, inaonekana kwamba toupper mapenzi

30
00:01:21,060 --> 00:01:23,450
tu kupita ni pamoja bila kubadilika.

31
00:01:23,450 --> 00:01:25,750
>> Basi hebu sasa kurudi na kanuni yangu.

32
00:01:25,750 --> 00:01:30,480
Na hebu sasa kuondoa ukamilifu wa
kuzuia hii masharti na badala yake,

33
00:01:30,480 --> 00:01:40,240
kabisa tu, na printf% c comma
toupper ya s bracket i karibu paren

34
00:01:40,240 --> 00:01:45,120
paren karibu semicolon, na hivyo
ikimaanisha kwamba Ningependa kuchukua nafasi ya% c

35
00:01:45,120 --> 00:01:49,050
kwa mtaji wa
ith barua katika s kama ith

36
00:01:49,050 --> 00:01:50,530
barua katika s ni Herufi za chini.

37
00:01:50,530 --> 00:01:53,710
Au hata kama siyo, itakuwa
kupita kwa njia ya kubadilika.

38
00:01:53,710 --> 00:01:58,790
>> Hebu sasa kukusanya mpango huu na
kufanya capitalize2, na kuendesha kwa

39
00:01:58,790 --> 00:02:01,800
capitalize2, tena, kuandika hello.

40
00:02:01,800 --> 00:02:03,800
Na kwa kweli, sisi kupata nyuma uppercase.

41
00:02:03,800 --> 00:02:05,090
Hebu tena aina Daudi.

42
00:02:05,090 --> 00:02:06,340
Na pia, ni uppercase.

43
00:02:06,340 --> 00:02:09,380