1 00:00:01,090 --> 00:00:01,960 In the first. 2 00:00:03,130 --> 00:00:05,740 Technique, which means Scarboro offense. 3 00:00:06,550 --> 00:00:08,880 I heard it two variables. 4 00:00:09,130 --> 00:00:09,520 OK. 5 00:00:10,600 --> 00:00:12,670 Let me make this been. 6 00:00:14,010 --> 00:00:14,940 I heard X. 7 00:00:16,000 --> 00:00:17,200 And I had white. 8 00:00:19,850 --> 00:00:23,830 And I had two memory locations, third for Exxon, right? 9 00:00:24,650 --> 00:00:27,920 Then I have a strapping Apple guard strap. 10 00:00:29,700 --> 00:00:38,730 And I have sample here in the fact that somebody I created two different copies of excited, right? 11 00:00:39,210 --> 00:00:43,830 That is completely different excitement that is inside the functionally. 12 00:00:43,860 --> 00:00:47,500 So I'm giving here function X. 13 00:00:47,850 --> 00:00:54,090 We haven't been able to create an inside the function function strap inside that function to have two 14 00:00:54,090 --> 00:00:58,550 variables X and Y do all of these variables on an additive. 15 00:00:59,250 --> 00:01:05,010 This X and Y is not equal to this X anyway because it's stored in different memory locations. 16 00:01:05,490 --> 00:01:12,750 Suppose this was inside the memory location 2001 and 2002 the systemic summer? 17 00:01:13,380 --> 00:01:16,740 No, OK, this was in, say, 591. 18 00:01:16,770 --> 00:01:17,670 Then finally to. 19 00:01:19,780 --> 00:01:20,680 Just unacceptable. 20 00:01:20,890 --> 00:01:23,470 So this is not the sex. 21 00:01:23,770 --> 00:01:29,230 This way is not this way, this sex and violence specific the stop function and this sex and way out 22 00:01:29,230 --> 00:01:29,590 of law. 23 00:01:29,590 --> 00:01:29,800 But. 24 00:01:30,460 --> 00:01:32,260 And I'm giving this three. 25 00:01:33,470 --> 00:01:34,070 And file. 26 00:01:35,220 --> 00:01:36,870 And it will reach out here. 27 00:01:37,050 --> 00:01:42,120 It will create the copies of this video, but it's in this X and three and file. 28 00:01:42,810 --> 00:01:44,760 Now what happened inside the function? 29 00:01:45,360 --> 00:01:48,360 We are slapping these extend, right? 30 00:01:50,160 --> 00:01:55,890 So this X will become five and this Y will become three. 31 00:01:56,250 --> 00:01:58,290 What happens to this sex sign, right? 32 00:01:58,530 --> 00:02:00,000 Which is outside the function? 33 00:02:00,270 --> 00:02:01,350 We are not stopping it. 34 00:02:01,410 --> 00:02:02,580 It doesn't change. 35 00:02:03,120 --> 00:02:03,690 That's it. 36 00:02:04,020 --> 00:02:07,680 That's the card byte value method here. 37 00:02:07,920 --> 00:02:10,780 Next is what happens to carbon. 38 00:02:11,120 --> 00:02:18,570 I think that's more interesting inside the functions that we are actually passing the reference statics 39 00:02:18,570 --> 00:02:20,340 and stayed away, right? 40 00:02:21,150 --> 00:02:22,440 We are getting that in France. 41 00:02:22,680 --> 00:02:23,730 So what happens? 42 00:02:24,120 --> 00:02:25,440 This is not the case. 43 00:02:25,860 --> 00:02:28,740 It will not be too different next then, right? 44 00:02:29,010 --> 00:02:30,420 So let me erase that. 45 00:02:35,470 --> 00:02:38,050 So I will be passing statics and. 46 00:02:40,670 --> 00:02:45,200 Again, I will be going for Ben and I will be passing away. 47 00:02:46,910 --> 00:02:49,670 So it will exactly point to this one. 48 00:02:49,790 --> 00:02:55,820 Stocks will be flying to this location and Star White will be flying to this location. 49 00:02:56,270 --> 00:03:01,650 Now I am never changing stocks and starlight, so stocks become statewide. 50 00:03:01,670 --> 00:03:06,830 That means three becomes five and away become stocks. 51 00:03:07,040 --> 00:03:09,710 That means fire becomes three. 52 00:03:10,100 --> 00:03:13,790 That's actually the core by reference. 53 00:03:14,210 --> 00:03:15,350 So that's the difference. 54 00:03:15,590 --> 00:03:16,820 You have on this right now. 55 00:03:18,020 --> 00:03:20,390 So now we can move to the next topic. 56 00:03:22,420 --> 00:03:24,610 That is structured in C++. 57 00:03:25,540 --> 00:03:30,520 Sarkozy might want to hold my April database in a single variable. 58 00:03:31,540 --> 00:03:33,340 Then it is possible in C++. 59 00:03:33,970 --> 00:03:37,210 That's why the U.S. support structure. 60 00:03:38,740 --> 00:03:43,650 So it is a collection of variables of different data rights and single. 61 00:03:44,200 --> 00:03:44,590 OK. 62 00:03:45,220 --> 00:03:48,220 And supposedly an excel by fantastic Dennis. 63 00:03:48,400 --> 00:03:54,580 If I want to start on information about a person, that information would be specific to a single person, 64 00:03:54,580 --> 00:03:54,820 right? 65 00:03:55,030 --> 00:03:58,030 A lot of information can be specific to a person. 66 00:03:58,180 --> 00:03:59,650 ExxonMobil, his name. 67 00:04:00,710 --> 00:04:02,040 Or citizen, no. 68 00:04:02,060 --> 00:04:04,190 Then salary also. 69 00:04:05,270 --> 00:04:08,750 You can create one way to start there are 10 people. 70 00:04:09,440 --> 00:04:15,590 Then we need to start, then we need to create 10 different waiting lists for 10 people. 71 00:04:15,830 --> 00:04:19,160 That means that variable sport steering that there's a. 72 00:04:20,290 --> 00:04:27,790 These 10 people, right, if there are 10 details of the people and there are 10 people living near 73 00:04:27,800 --> 00:04:33,010 to create an independent media, but it's just all these details of people. 74 00:04:33,550 --> 00:04:39,330 But if we had a structure, one structure can hold different database. 75 00:04:39,760 --> 00:04:45,730 So for a one person, we only need to create one structure which holds that information. 76 00:04:46,360 --> 00:04:49,420 OK, so that's what we define our role here. 77 00:04:49,600 --> 00:04:58,170 So I suppose if I wanted to store our number for like sitting like two people out of there and one person 78 00:04:58,170 --> 00:05:04,630 in name, one for one person name do for another person starting their names, sit down for another 79 00:05:04,630 --> 00:05:09,130 one city for the annual salary for all of us, one Saturday for the second month. 80 00:05:09,340 --> 00:05:12,490 So I need to create multiple variables in order to avoid that. 81 00:05:12,490 --> 00:05:14,920 And again, you say concept car structure. 82 00:05:15,760 --> 00:05:22,060 It's very simple to create a sector practically like will be used for creating a structure and just 83 00:05:22,060 --> 00:05:23,940 give that structure name. 84 00:05:24,430 --> 00:05:31,090 So stack first and then we will open the calibrations inside that define all the variables. 85 00:05:31,090 --> 00:05:32,800 Static got a name for free. 86 00:05:32,980 --> 00:05:39,010 That means this variable will store the name of that person this way so they each and this will show 87 00:05:39,010 --> 00:05:39,880 that salary. 88 00:05:40,210 --> 00:05:44,170 So this single structure can hold these three values. 89 00:05:44,570 --> 00:05:53,890 And so if we wanted to create 10 star 10 people name, then we need to create 10 people out of that, 90 00:05:54,310 --> 00:05:55,530 or 10 percent. 91 00:05:56,730 --> 00:05:59,700 Structure out of this particular structure. 92 00:06:00,720 --> 00:06:02,250 So we're going to see an excel. 93 00:06:04,250 --> 00:06:06,410 And you even understand more on this. 94 00:06:08,960 --> 00:06:09,800 So let's go. 95 00:06:13,000 --> 00:06:20,840 So here we have the program for structure, so yet I have created a structure, so struct buster, then 96 00:06:20,860 --> 00:06:25,660 I'm creating the Academy of DataStore, the name of the person. 97 00:06:26,140 --> 00:06:32,170 It's really to create the age of that person and salary floor for starting this output. 98 00:06:33,190 --> 00:06:40,150 Now, in order to create a start desk, person to person number one named item, then I will create 99 00:06:40,150 --> 00:06:40,660 person. 100 00:06:40,660 --> 00:06:46,870 And when you get named to say anything, you can mean naming this dependent depending on the person's 101 00:06:46,870 --> 00:06:47,170 name. 102 00:06:47,370 --> 00:06:49,570 So you again named the structure. 103 00:06:49,810 --> 00:06:54,400 So suppose I have one person, part b one and I know another person guard. 104 00:06:54,640 --> 00:06:55,090 I don't. 105 00:06:55,090 --> 00:06:57,730 Then I can declare one more structure variable. 106 00:06:57,730 --> 00:06:59,350 Like this person, I don't know. 107 00:06:59,800 --> 00:07:00,850 Then what will happen? 108 00:07:02,390 --> 00:07:09,310 We run against all the information specific to be one person, and I can store that information specific, 109 00:07:09,320 --> 00:07:10,250 no, I don't. 110 00:07:11,090 --> 00:07:15,110 And how do we access information specifically for that? 111 00:07:15,110 --> 00:07:16,730 You will use a dark operator. 112 00:07:16,940 --> 00:07:19,310 So nice structure, Jimmy. 113 00:07:20,490 --> 00:07:24,540 Dart made everything inside that structure, OK? 114 00:07:24,870 --> 00:07:28,200 Similarly, structure named Dart made everything inside that structure. 115 00:07:28,590 --> 00:07:31,710 Then section named art made everything inside that structure. 116 00:07:32,010 --> 00:07:33,300 So here I'm asking for. 117 00:07:33,540 --> 00:07:39,480 So here I'm using get function scene, not get function to get this OK? 118 00:07:40,880 --> 00:07:44,090 So let's see how this program works. 119 00:07:47,590 --> 00:07:52,210 Plus plus structure dot CPB. 120 00:07:55,530 --> 00:07:58,290 Dogged or out? 121 00:08:00,850 --> 00:08:01,720 And for name. 122 00:08:02,500 --> 00:08:12,040 I don't know Daryn, Sam, and at age 24, and that's out of 15000. 123 00:08:14,530 --> 00:08:17,410 See, displaying information. 124 00:08:17,900 --> 00:08:26,980 B 1.9 C helping just b 1.9 years Santa H 24 right salary fifteen thousand.