All language subtitles for 3. Setting Up Program And Basic Structure of C++Part-1

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian Download
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,210 --> 00:00:03,620 No, you can go to and smaller demo session there. 2 00:00:03,630 --> 00:00:11,700 We will be setting up our environment in our system to do programming in C++ and the basic structure 3 00:00:11,700 --> 00:00:13,120 of C++ program. 4 00:00:13,140 --> 00:00:14,790 Also, we can cover in this section. 5 00:00:14,790 --> 00:00:20,400 So throughout this course, we will be using an integrated development environment where we will be 6 00:00:20,400 --> 00:00:25,350 writing, compiling and running C++ programs and a development environment. 7 00:00:25,350 --> 00:00:32,240 Ice I just our discourse to use in this modern enrollment is Visual Studio or application. 8 00:00:32,250 --> 00:00:37,770 So Visual Studio code is a bold plan or auditable by Microsoft, which you can use in different platforms 9 00:00:37,770 --> 00:00:40,740 even be no sleeping Linux, said Mac. 10 00:00:40,740 --> 00:00:46,620 So my system is McCoy, so I have already downloaded the Visual Studio code out of my computer. 11 00:00:46,620 --> 00:00:50,130 So let me show you that Visual Studio code downloaded. 12 00:00:50,250 --> 00:00:51,510 So it's a free software. 13 00:00:51,540 --> 00:00:56,940 You don't need to worry about the licensing, but you can just go to this website and download it from 14 00:00:56,940 --> 00:00:57,990 that website. 15 00:00:58,050 --> 00:01:02,610 So it's very easy to use Visual Studio code, and it's a free software. 16 00:01:02,610 --> 00:01:05,610 So I really just open that Visual Studio code here. 17 00:01:05,640 --> 00:01:09,980 So as you can see over here, this is the start screen of visual studio code. 18 00:01:09,990 --> 00:01:17,220 And one more thing which you have to do while you want to run C++ program in Visual Studio Code is you 19 00:01:17,220 --> 00:01:25,350 can go to the extension part of the this program and you can search for an extension for C or C++. 20 00:01:25,710 --> 00:01:33,360 This extension is very much required to start developing that C++ in your computer so you can install 21 00:01:33,360 --> 00:01:39,060 the C C++ installer like module or extension provided by Microsoft. 22 00:01:39,090 --> 00:01:45,150 This will help you to create the programming environment set up in your computer, and if you want to 23 00:01:45,750 --> 00:01:52,290 compile and run these programs, you can read the documentation provided with this software, where 24 00:01:52,290 --> 00:01:59,160 you will be able to see how you can use the development tools in compiling and running the program. 25 00:01:59,190 --> 00:01:59,890 So let's start. 26 00:01:59,910 --> 00:02:05,130 So here we can create a new file for creating a class C++ program. 27 00:02:05,160 --> 00:02:11,680 The most famous program which program is right in our beginning of our programming studies? 28 00:02:11,700 --> 00:02:12,120 Hello. 29 00:02:12,720 --> 00:02:19,080 So Hollowell Program is a simple program which will display a high level in whatever terminal which 30 00:02:19,080 --> 00:02:19,560 we use. 31 00:02:19,920 --> 00:02:23,700 So here you can see a terminal window in this visual studio code. 32 00:02:24,030 --> 00:02:27,750 And if you're not seeing it in your system, then what do you need to do? 33 00:02:27,750 --> 00:02:35,160 Is like there would be a terminal icon in your original menu bar in your research record that you can 34 00:02:35,160 --> 00:02:36,640 go and create anywhere. 35 00:02:36,660 --> 00:02:38,880 There you will be getting this window going. 36 00:02:39,510 --> 00:02:43,170 So now let's start creating our first program. 37 00:02:43,200 --> 00:02:47,330 So each and every programming language will have a syntax. 38 00:02:47,370 --> 00:02:55,110 So when we create a C++ program, we will require to use a particular syntax when we create our first 39 00:02:55,110 --> 00:02:55,530 program. 40 00:02:55,560 --> 00:03:05,550 So the first mandatory key word, which we use to write C++ program is hash, and then we will give 41 00:03:05,550 --> 00:03:06,740 it that part. 42 00:03:07,110 --> 00:03:08,250 I use dream out. 43 00:03:11,720 --> 00:03:17,490 And so here you can see this statement is quite preprocessor direct. 44 00:03:17,660 --> 00:03:24,440 No, this statement, even if I have wrote it, it's not having any highlight or any difference because 45 00:03:24,830 --> 00:03:27,140 I haven't saved this file C++. 46 00:03:27,320 --> 00:03:35,600 So it's always better to start saving you fine as C++ than the compiler or our C++ I.T., because record 47 00:03:35,780 --> 00:03:42,020 will automatically start suggesting you different syntax and everything so that your programming is 48 00:03:42,020 --> 00:03:42,770 more easier. 49 00:03:42,860 --> 00:03:46,550 So I'm saving this program as Hello World 50 00:03:51,620 --> 00:03:57,620 Dark CBB, so CBB should be the extension of all that C++ programs. 51 00:03:57,770 --> 00:04:05,000 So, no, you can see the syntax is having a different color, and it's highlighted and even everything 52 00:04:05,000 --> 00:04:06,080 will be shown. 53 00:04:06,080 --> 00:04:09,590 Every error message on, every kind of messages will be shown and. 54 00:04:10,490 --> 00:04:15,200 And why we're using this statement, that's one more point which we need to discuss. 55 00:04:15,440 --> 00:04:22,080 So when we use hashing good ice cream, you should know that I use streamy as a file in the system called 56 00:04:22,080 --> 00:04:22,880 I had a fire. 57 00:04:22,970 --> 00:04:29,660 So this header file will be having all that information about the functions and the for things which 58 00:04:29,660 --> 00:04:30,230 we have. 59 00:04:30,530 --> 00:04:32,450 We will be start using in the program. 60 00:04:32,460 --> 00:04:38,960 So we will be using some functions in very final chance to display something right to print something 61 00:04:38,960 --> 00:04:40,250 on the screen for that. 62 00:04:40,260 --> 00:04:43,100 Also, we have a lot of keywords in that C++. 63 00:04:43,120 --> 00:04:49,280 So all these keywords and everything required for the basic running of a program is being designed or 64 00:04:49,280 --> 00:04:52,930 defined inside the your stream, not edge handle. 65 00:04:53,210 --> 00:04:59,810 So in order to include that had a part in our program and using this statement by hashing async and 66 00:04:59,810 --> 00:05:10,910 this statement is called pre-processed back to pre processing backbeat, so we can use a lot of process 67 00:05:10,990 --> 00:05:13,610 narrative that will be meant for each and every function. 68 00:05:13,850 --> 00:05:15,420 We will be having it separate. 69 00:05:15,470 --> 00:05:20,960 Look at that three process of narratives while we navigate on that goal, of course for that. 70 00:05:21,290 --> 00:05:29,210 So now just understand this statement is required for functioning of the C++ program properly. 71 00:05:29,420 --> 00:05:32,390 So this is the preprocessor back. 72 00:05:32,390 --> 00:05:34,610 D. We do have a lot of pre process interactive. 73 00:05:34,760 --> 00:05:39,390 And here you can see I used to double slashes to write that comment. 74 00:05:39,470 --> 00:05:43,490 Common means that's not that program executable statement. 75 00:05:43,490 --> 00:05:45,050 It's not an executable statement. 76 00:05:45,260 --> 00:05:52,070 It just we should be writing a lot of comments throughout the program to understand why that line particularly 77 00:05:52,070 --> 00:05:52,610 means. 78 00:05:52,610 --> 00:05:53,390 So that's good. 79 00:05:53,420 --> 00:05:59,300 Always good practice to use a lot of comments, and we can always use single line comments or multiple 80 00:05:59,300 --> 00:05:59,960 line comments. 81 00:06:00,140 --> 00:06:07,910 So using slash slash and writing something after, it is a single line comment which after this line 82 00:06:07,940 --> 00:06:10,580 that will not be the next statement will not be a comment. 83 00:06:10,790 --> 00:06:17,480 And if you want to write multiple lines of comment that also is possible in C++ that is done with the 84 00:06:17,480 --> 00:06:25,850 help of multi-line common statements like slash star, then start slash. 85 00:06:26,270 --> 00:06:33,200 So why does the peculiarity of this operator this symbol is why does things rewrite inside this same 86 00:06:33,200 --> 00:06:33,410 way? 87 00:06:33,530 --> 00:06:36,700 It will not be compiler run by the program. 88 00:06:36,710 --> 00:06:41,270 It's just for our developers to understand what the coming lines are. 89 00:06:41,420 --> 00:06:48,500 So if you can write even multiple lines inside the statement from the start slash start and then end 90 00:06:48,920 --> 00:06:51,620 start slash, that will be a comment. 91 00:06:51,830 --> 00:06:57,350 So you can even write multiple lines of code inside that, but that does not execute. 92 00:06:57,830 --> 00:06:59,170 So what other things do you again? 93 00:06:59,550 --> 00:07:02,090 I told the multiple lines on this score. 94 00:07:02,360 --> 00:07:03,670 It will not get executed. 95 00:07:03,680 --> 00:07:09,680 You can write whatever you want, but it should be meaningful and it should be something that you can 96 00:07:09,890 --> 00:07:14,520 use to understand what the statements are actually meaning in this program. 97 00:07:14,540 --> 00:07:16,100 So that's why we use comments. 98 00:07:16,100 --> 00:07:22,700 So I'm just deleting this unnecessary comment, and let's go to that next statement of that program. 99 00:07:22,730 --> 00:07:27,140 So next time, using a namespace keyword. 100 00:07:27,500 --> 00:07:31,910 So using namespace SDD. 101 00:07:35,130 --> 00:07:39,330 That is my next link, and I will be putting a semicolon over there. 102 00:07:39,390 --> 00:07:43,800 So this is one basic syntax which a program should have. 103 00:07:43,830 --> 00:07:47,520 So here you can see I have used an keyword card using. 104 00:07:47,790 --> 00:07:50,470 And also I have added namespace and SDD. 105 00:07:50,490 --> 00:07:59,670 So what this line means, these things are like, what are things I write in the program that is in 106 00:07:59,670 --> 00:08:01,890 S-Corp called namespace? 107 00:08:02,340 --> 00:08:05,010 We will be learning more about namespace also. 108 00:08:05,130 --> 00:08:07,710 So you need to need not to worry about this one. 109 00:08:07,740 --> 00:08:15,090 So here in this program, we are using a standard namespace called SDD, which will have more definitions 110 00:08:15,090 --> 00:08:18,840 to input and output statements in that program. 11098

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.