1 00:00:01,600 --> 00:00:02,160 Hello. 2 00:00:02,170 --> 00:00:05,170 And this lecture you will learn about the character types. 3 00:00:05,620 --> 00:00:11,440 The character types here, the store, human language data. 4 00:00:12,580 --> 00:00:14,650 There are six character types. 5 00:00:15,430 --> 00:00:24,220 The six are car, car, the character, 16 T character and 32 T signed car sign character. 6 00:00:24,250 --> 00:00:26,770 We character team. 7 00:00:26,770 --> 00:00:30,040 So the character type is a default type. 8 00:00:30,460 --> 00:00:31,270 It has. 9 00:00:31,390 --> 00:00:33,760 It always has. 10 00:00:33,760 --> 00:00:37,940 A one byte could be signed or unsigned. 11 00:00:37,960 --> 00:00:42,880 For example, this character type uses in ASCII system. 12 00:00:43,660 --> 00:00:46,360 Here we have characters 16 t. 13 00:00:46,660 --> 00:00:50,230 This is the use for for two bytes character sets. 14 00:00:50,230 --> 00:00:54,940 Example UTF 16 and character 13 two. 15 00:00:55,490 --> 00:00:59,220 But here used for the four by. 16 00:00:59,600 --> 00:01:04,300 Sorry for this mistake used for four byte character sets. 17 00:01:04,360 --> 00:01:13,360 For example, this character type used on UTF to UTF 32 character system. 18 00:01:13,450 --> 00:01:18,550 So the sign character same as character, but guaranteed to be signed. 19 00:01:19,630 --> 00:01:25,430 Signed character as same as character, but guaranteed to be signed. 20 00:01:25,450 --> 00:01:33,880 And lastly, we character PT has a large enough to contain the largest character of the implementations 21 00:01:33,880 --> 00:01:37,360 local, which called Unicode. 22 00:01:38,140 --> 00:01:42,160 So we have two types of characters, male and two groups of characters. 23 00:01:42,490 --> 00:01:45,340 These are the narrow characters and voiced characters. 24 00:01:45,370 --> 00:01:52,150 Now, our characters include characters, signed character, unsigned character, and the white characters 25 00:01:52,150 --> 00:02:00,410 in Car 16, T and Character two, two, T and W Character team. 26 00:02:01,180 --> 00:02:10,030 Here, the the characters types here, As you can see here, all of that is character types. 27 00:02:10,390 --> 00:02:22,630 And this is these are the four types that store human language data, for example, A, B, C, D, 28 00:02:22,630 --> 00:02:23,590 or like that. 29 00:02:24,220 --> 00:02:27,880 So we let's go to character literals. 30 00:02:27,880 --> 00:02:35,180 We will use here a character literal is a single, constant character here. 31 00:02:35,200 --> 00:02:37,930 Single quotation mark like this. 32 00:02:38,290 --> 00:02:45,490 So around our characters, if the character is any type but character car, you must also provide a 33 00:02:45,490 --> 00:02:59,470 prefix for L or v u for car 16 T and and uppercase U for characters 32 t. 34 00:03:00,100 --> 00:03:03,160 So let me actually add this here. 35 00:03:06,090 --> 00:03:06,900 Literal. 36 00:03:07,200 --> 00:03:09,750 Literal, Yes. 37 00:03:10,560 --> 00:03:13,830 Calculated to be literal is uppercase. 38 00:03:13,830 --> 00:03:20,910 You as I said, character 16 T is under case. 39 00:03:21,390 --> 00:03:23,460 Literal is just the you. 40 00:03:24,550 --> 00:03:25,690 But not uppercase. 41 00:03:25,900 --> 00:03:28,870 And the usual character. 42 00:03:30,470 --> 00:03:34,580 As an example, the cart has l. 43 00:03:44,250 --> 00:03:45,480 Here, as you can see here. 44 00:03:46,830 --> 00:03:52,530 But for the default character, you just use the two quotation marks. 45 00:03:52,530 --> 00:03:58,200 And between this or B here you hear. 46 00:03:59,980 --> 00:04:04,630 So we have the escape sequences for characters as well. 47 00:04:06,680 --> 00:04:08,630 The escape sequence. 48 00:04:09,050 --> 00:04:11,390 Some characters don't display on the screen. 49 00:04:11,420 --> 00:04:18,800 Instead, they force the display to do things like move the cursor to the left side of the screen, 50 00:04:18,800 --> 00:04:27,680 cannot return or move the cursor down one line, the new line here so other characters can display on 51 00:04:27,680 --> 00:04:34,100 screen, but they are part of the C++ language syntax, such as simple or double cross you, so you 52 00:04:34,100 --> 00:04:35,660 must use them very carefully. 53 00:04:35,660 --> 00:04:41,690 But these characters into car, you use the escape sequences. 54 00:04:41,690 --> 00:04:49,190 So let's create let's create a list of the escape sequences here in this lecture, the first escape 55 00:04:49,190 --> 00:04:53,480 sequences here as cave sequences. 56 00:04:56,380 --> 00:04:57,550 New line is. 57 00:04:57,550 --> 00:04:58,990 New line is. 58 00:05:00,370 --> 00:05:00,970 And. 59 00:05:03,740 --> 00:05:06,080 Top here is. 60 00:05:08,370 --> 00:05:08,970 He. 61 00:05:12,190 --> 00:05:12,760 Here. 62 00:05:13,660 --> 00:05:17,500 Tap vertical is me. 63 00:05:21,920 --> 00:05:23,900 The backspace. 64 00:05:25,680 --> 00:05:28,920 Back space is be. 65 00:05:30,290 --> 00:05:30,990 See. 66 00:05:32,400 --> 00:05:34,230 The carriage. 67 00:05:35,110 --> 00:05:36,040 Return of. 68 00:05:39,800 --> 00:05:40,370 Be. 69 00:05:41,940 --> 00:05:43,320 The carriage return. 70 00:05:44,950 --> 00:05:47,470 Is really are. 71 00:05:50,100 --> 00:05:51,390 For four feet. 72 00:05:51,390 --> 00:05:54,750 Four feet is f. 73 00:05:57,390 --> 00:05:58,650 The alert. 74 00:05:59,370 --> 00:06:01,410 Alert is e! 75 00:06:03,710 --> 00:06:04,820 The backslash. 76 00:06:09,900 --> 00:06:11,910 Is double here. 77 00:06:12,260 --> 00:06:14,310 It will character. 78 00:06:14,760 --> 00:06:19,410 The single quote is this. 79 00:06:20,100 --> 00:06:21,270 And double code. 80 00:06:23,910 --> 00:06:27,780 Is this double just a normal double code? 81 00:06:30,190 --> 00:06:32,050 And the no character here? 82 00:06:32,590 --> 00:06:33,400 The No. 83 00:06:34,910 --> 00:06:37,340 Car is zero. 84 00:06:37,340 --> 00:06:38,810 Backslash zero. 85 00:06:39,900 --> 00:06:46,080 So we have a unit called Escape Characters as well, so you can specify unique character Unicode characters, 86 00:06:46,080 --> 00:06:49,050 literals using the universal character names. 87 00:06:50,400 --> 00:06:58,740 And you can form a universal character name in one of the two ways the prefix you or here you. 88 00:07:00,380 --> 00:07:12,920 Followed by the four digit of Unicode point here, or the prefix uppercase U, followed by an eight 89 00:07:12,920 --> 00:07:15,620 digit Unicode point. 90 00:07:15,620 --> 00:07:19,610 So you can represent a key character here. 91 00:07:21,170 --> 00:07:25,540 The character is here. 92 00:07:29,460 --> 00:07:34,020 A lowercase you and four digit. 93 00:07:34,850 --> 00:07:34,980 So. 94 00:07:35,010 --> 00:07:37,170 So e character is this. 95 00:07:39,160 --> 00:07:46,630 So actually you can learn this character on the. 96 00:07:47,560 --> 00:07:50,890 So there is a list for this character, Unicode characters here. 97 00:07:51,220 --> 00:07:55,660 Any unique called characters. 98 00:07:56,930 --> 00:07:57,530 Here. 99 00:08:03,430 --> 00:08:05,440 Uh, table. 100 00:08:25,980 --> 00:08:26,430 Here. 101 00:08:26,430 --> 00:08:36,420 I found this website in which there's almost all Unicode characters and that they are there Unicode 102 00:08:36,420 --> 00:08:41,070 Point character and UTF eight points here. 103 00:08:41,250 --> 00:08:46,620 So as you can see here, if you want to write an A to console. 104 00:08:48,150 --> 00:08:57,780 You can just use this with a single code followed by the backslash U. 105 00:08:57,780 --> 00:09:02,340 And after that you enter the code of this character's. 106 00:09:03,310 --> 00:09:11,380 So as you can say, you can use the other symbols and characters here with different numbers. 107 00:09:13,590 --> 00:09:14,070 Yeah. 108 00:09:15,820 --> 00:09:18,190 So I will copy this website. 109 00:09:20,500 --> 00:09:26,920 On the lectures download here, which you can see it here. 110 00:09:27,370 --> 00:09:28,270 So. 111 00:09:30,180 --> 00:09:32,460 Let's begin with an example. 112 00:09:32,460 --> 00:09:34,080 Enough for the terrorists here. 113 00:09:34,110 --> 00:09:35,820 Let's get to practical. 114 00:09:36,060 --> 00:09:39,570 So let's create our code here. 115 00:09:41,220 --> 00:09:47,840 Let's create some character named X and game this M and let's create another character. 116 00:09:47,850 --> 00:09:49,020 W character. 117 00:09:50,310 --> 00:09:59,370 He called you here by the big uppercase L and Z here. 118 00:10:03,520 --> 00:10:05,820 And then print off. 119 00:10:09,090 --> 00:10:22,650 Windows binaries start with C and LC again and the new line and gave this format specifiers as first 120 00:10:22,650 --> 00:10:24,210 our X and Y. 121 00:10:25,340 --> 00:10:25,850 Yeah. 122 00:10:30,160 --> 00:10:34,890 Oh, I thought we did hear something or see. 123 00:10:35,770 --> 00:10:39,610 So we gave this X and Y. 124 00:10:42,180 --> 00:10:42,600 Yeah. 125 00:10:42,810 --> 00:10:43,410 Sorry. 126 00:10:48,450 --> 00:10:51,120 Let's compile this code now. 127 00:10:52,490 --> 00:10:52,980 Perhaps. 128 00:10:58,090 --> 00:10:58,720 We're on. 129 00:11:03,840 --> 00:11:09,000 Here a Windows binaries start with M. 130 00:11:10,030 --> 00:11:10,830 NZ. 131 00:11:11,380 --> 00:11:14,770 This program outputs this year. 132 00:11:15,940 --> 00:11:26,590 As you can see here, even though the M is a narrow character car and then the Z is here is a white 133 00:11:26,590 --> 00:11:27,310 character. 134 00:11:28,130 --> 00:11:35,660 Printf works because the program uses the correct format specifiers. 135 00:11:36,050 --> 00:11:39,770 The next lecture will be about two bullying types. 136 00:11:39,770 --> 00:11:42,110 So I'm waiting you in the next lecture.