Difference between revisions of "C-and-Cpp/C2/Scope-Of-Variables/Khasi"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with "{| border=1 || '''Time''' || '''Narration''' |- | 00:01 | Ngi pdiangsngewbha ia phi sha ka “Scope of variables in C and C++”. |- | 00:08 |Ha kane ka jinghikai, ngin pule...")
 
 
Line 118: Line 118:
 
|-
 
|-
 
| 02:55
 
| 02:55
| Ban compile, type
+
| Ban compile, type 'gcc space scope.c space hyphen o space sco” bad press Enter.
|-
+
| 02:56
+
|'gcc space scope.c space hyphen o space sco” bad press Enter.
+
 
|-
 
|-
 
| 03:05
 
| 03:05
|Ban execute,
+
|Ban execute,Type “./sco” (dot slash sco), nion Enter.
|-
+
| 03:06
+
|Type “./sco” (dot slash sco), nion Enter.
+
 
|-
 
|-
 
| 03:10
 
| 03:10
Line 246: Line 240:
 
|-
 
|-
 
|  06:41
 
|  06:41
| To ngin execute biang.
+
| To ngin execute biang.Ngin phai biang sha ka terminal jong ngi.
|-
+
|06:42
+
|Ngin phai biang sha ka terminal jong ngi.
+
 
|-
 
|-
 
|  06:45
 
|  06:45

Latest revision as of 12:56, 7 June 2017

Time Narration
00:01 Ngi pdiangsngewbha ia phi sha ka “Scope of variables in C and C++”.
00:08 Ha kane ka jinghikai, ngin pule shaphang.
00:11 Kaei ka Scope jong u variable?
00:13 Kaei ka Global variable?
00:16 Kaei ka Local variable?
00:19 Katto katne ki nuksa.
00:22 Ngin peit ruh katto katne ki jingbakla bad ki solutions.
00:27 Ban record ia ka ne ka jinghikai, Nga pyndonkam da ka:
00:30 Ubuntu Operating System version 11.04, gcc and g++ Compiler version 4.6.1.
00:41 To ngin sdang da tien sdang jong ka scope of variables.
00:47 Ka dei ka bynta jong u code hapoh ha kaba u variable un lah ban accessed.
00:54 Ka shong ha ka jait bad jaka jong ka declaration la phiah ha ki ar bynta:
00:59 Global Variable bad
01:02 Local Variable.
01:05 Mynta ngin peit lyngba ki nuksa.
01:07 Nga lah dep type ia ka prokram halor ka editor.
01:10 To ngin plie ia ka.
01:14 Kynmaw ba ka kyrteng ka phail jong ngi ka dei “scope.c.”
01:19 To ngan batai ia ka code mynta.
01:23 Kane ka dei ka “header phail” jong ngi.
01:26 Hangne ngi lah declared ar tylli ki global variables “a bad b.”
01:32 Bad ngi lah “initialized” ia ki da kaba assign ia ki values kum “5 bad 2.”
01:39 Ka global variable ka don ha baroh ki functions hapoh ki prokram jong phi.
01:44 Ia kine la declared shabar jong kino kino ki functions, hajrong ka main() function.
01:51 Kine ki don ka “global scope.”
01:53 Hangne ngi lah declared ia ka “function” “add” “without” “arguments.”
01:59 Hangne “sum” ka dei ka local variable, la declared ia ka hapoh ka function “add”.
02:07 Ka local variable ka don tang ha ka function hapoh ha kaba la declared.
02:13 Kine ki variables la declared hapoh ka block.
02:16 Kine ki don ha “local scope”.
02:19 Nangta ka sum jong u a bad b yn buh hapoh ka variable ‘sum’. Hangne ngin print ia ka sum.
02:29 Kane ka dei ka “main()” function jongngi.
02:33 Ka “add” function la shim bad hadien sa execute.
02:38 Bad kane kadei ka “return” statement jong ngi.
02:40 Mynta click Save.
02:43 To ngin execute ia ka prokram.
02:45 Sngewbha plie ia ka terminal window da kaba press “Ctrl, Alt” bad “T” keys ha kajuh ka por na ka keyboard jong phi.
02:55 Ban compile, type 'gcc space scope.c space hyphen o space sco” bad press Enter.
03:05 Ban execute,Type “./sco” (dot slash sco), nion Enter.
03:10 Ka output la pyni kum
03:13 Sum of a and b is 7.
03:16 Mynta to ngin peit kumno ban execute ia ka juh ka prokram ha ka C++.
03:20 Phai biang sha ka prokram jong ngi. Nyngkon nion “Shift, Ctrl” bad “S” keys ha kajuh ka por na ka keyboard jong phi.
03:31 Mynta save ia ka phail kaba don ka extension “.cpp”(dot cpp) bad click Save.
03:41 To ngin pynkylla ia ka header phail kum “iostream”.
03:47 Mynta kynthup lang ia ka “using” statement. Click save.
03:58 Ka declaration jong ka global variable bad ka local variable ka long kum juh ha ka C++
04:03 Namar kata, ym donkam ban pynkylla ei ei.
04:07 Mynta bujli ia ka “printf” statement da ka “cout” statement.
04:13 Pyndam ia ka “format specifier” bad '\n'.
04:17 Mynta pyndam noh ia u comma.
04:19 Type ar tylli ki opening angle brackets.
04:22 Pyndam noh ia u closing bracket, type biang sa ar tylli ki opening angle brackets.
04:26 Bad hapoh ki double quotes type backslash n. Mynta clock Save.
04:35 To ngin execute ia ka prokram.
04:39 To ngin phai biang sha ka terminal.
04:42 Ban compile, type “g++ space scope dot cpp space –o space scol”
04:52 Here we have sco1 because we don't want to overwrite output parameter sco for the file 'scope.c'.
05:04 Mynta nion Enter.
05:07 Ban execute type “./scol” bad nion Enter.
05:14 Ia Ka output la pyni kum “Sum of a and b is 7”.
05:19 Ngin iohi ba ka iasriem ia u C code jong ngi.
05:27 Mynta ngin iohi katto katne ki jingbakla ba ngi ju shem.
05:31 To ngin phai biang sha ka pokram jong ngi. Tharai hangne ngan declare biang sa shisien ia u variable “a”
05:41 Type “int a” bad u semicolon.
05:45 Click Save. Ngi lah declared ia u variable ‘a’ halor ka main() function bad ha dien ka “add” function.
05:55 To ngin peit jia aiu.
05:57 Ngin phai biang sha ka terminal jong ngi.
06:01 Mynta compile biang kumba mynshuwa.
06:05 Ngin iohi ia ki jingbakla, “redefinition jong “int a” “,” ‘int a’
06:18 '“a” u dei u global variable.
06:20 Ka don ka “global scope.”
06:22 Ngim lah ban declare ia ka variable arsien namar lah dep declare ia ka globally.
06:27 Ngin lah ban declare ia ka “variable a” kum ka local variable.
06:34 To ngin pynbeit ia ka jingbakla.
06:36 Pyndam ia kane.
06:39 Click Save.
06:41 To ngin execute biang.Ngin phai biang sha ka terminal jong ngi.
06:45 Mynta compile biang kumba mynshuwa, execute kum mynshuwa.
06:49 Hoid, ka la treikam.
06:52 Da kane ngi lah poi sha kaba kut jong ka jinghikai.
06:56 To ngin batai lyngkot.
06:58 Ha kane ka jinghikai ngi lah tip,
07:00 Ka Scope of variable.
07:02 Global variable, e.g: int a=5 &
07:07 Bad local variable , e.g: int sum
07:12 Lyngba ka assignment,
07:14 Thoh ia ka prokram ban print ia ka jingiapher jong artylli ki number.
07:19 Peit ia ka video ba la ai ha ryngkat ka link ba la pyni harum.
07:22 Ka batai lyngkot ia ka Spoken Tutorial Project.
07:25 Lada phim don ka bor internet ba khlain, shu download sa peit pat hadien.
07:30 Ka Spoken Tutorial Project Team
07:32 ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials.
07:35 Yn ai syrnod ia kiba pass ia ka online test.
07:40 Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka 'contact@spoken-tutorial.org
07:47 Spoken Tutorial Project ka dei ka bynta jong ka Talk to a Teacher.
07:52 La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India.
08:00 Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum :
08:04 La pynkylla sha ka ktien khasi da i Godwin pyrbot
08:08 Khublei naka bynta ba iasnohlang

Contributors and Content Editors

PoojaMoolya, Winz