Difference between revisions of "C-and-Cpp/C3/Arrays/Khasi"
From Script | Spoken-Tutorial
(Created page with "{| border = 1 |'''Time''' |'''Narration''' |- | 00:01 | Ngi pdiang sngewbha sha ka spoken tutorial halor ki '''Arrays''' ha ka '''C''' bad '''C++.''' |- | 00:07 | Ha kane ka...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 308: | Line 308: | ||
|- | |- | ||
| 05:04 | | 05:04 | ||
− | | | + | |Mynta bujli ka “printf” statement da ka “cout” statement. |
− | Mynta bujli ka “printf” statement da ka “cout” statement. | + | |
|- | |- | ||
Line 489: | Line 488: | ||
|- | |- | ||
| 08:30 | | 08:30 | ||
− | | La pynkylla sha ka ktien khasi da i Godwin pyrbot. | + | | La pynkylla sha ka ktien khasi da i Godwin pyrbot bad nga i John Nngkynrih. |
|- | |- | ||
| 08:33 | | 08:33 | ||
− | | Khublei naka bynta ba iasnohlang | + | | Khublei naka bynta ba iasnohlang. |
Latest revision as of 21:02, 17 October 2017
Time | Narration |
00:01 | Ngi pdiang sngewbha sha ka spoken tutorial halor ki Arrays ha ka C bad C++. |
00:07 | Ha kane ka jinghikai ngin pule: |
00:09 | Kaei ka array |
00:11 | Declaration jong u array |
00:13 | Ka jingsdang jong u array ' |
00:16 | Katto katne ki nuksa jong u array. |
00:18 | Ngin peit ruh katto katne ki jingbakla ba ju jia bad ki solutions. |
00:22 | Ban record ia ka jinghikai, Nga pyndonkam da |
00:25 | Ubuntu Operating System version 11.04, |
00:30 | gcc and g++ Compiler version 4.6.1 . |
00:36 | To ngin sdang da ka jinglamphrang ia u Array. |
00:39 | Array ka dei ka jinglumlang ia ki data ne elements jong ki juh ki jait data. |
00:44 | Array index ka sdang na u 0. |
00:48 | Ka element banynkong la buh ha ka index 0. |
00:52 | Don lai jait ki arrays: |
00:55 | Single dimensional array |
00:57 | Two dimensional array bad |
00:59 | Multi-dimensional array. |
01:01 | Ngin sa ia discuss ia ka single dimensional array ha kane ka jinghikai. |
01:06 | To ngin peit kumno ban declare ia ka single dimensional array. |
01:09 | Ka Syntax na ka bynta kane ka long: |
01:11 | data-type name of the array bad size |
01:16 | Ka nuksa, hangne ngi lah declare ia u integer array 'star' ba don 5 jait. |
01:24 | Ka array index kan sdang na u 0 haduh u star 4. |
01:29 | Ngi lah iohi ia ka declaration jong u array. |
01:32 | Mynta, ngin peit ia ka jingsdang jong u array. |
01:35 | Ka Syntax jong kane ka long: |
01:38 | data-type,( name of the array ), size is equal to elements |
01:44 | Nuksa, Hangne ngi la declare ia u 'integer array star' da ka size 3. Ki elements jong u array ki long 1,2 and 3. |
01:54 | Hangne ka index kan sdang na u star 0 haduh u star 2. |
01:59 | Mynta, to ngin iaid sha ki nuksa. |
02:01 | Nga lah type ia ka prokram halor ka editor. |
02:04 | Nangta, to shah ngan plie ia ka. |
02:06 | Sngewbha kynmaw ba ka kyrteng ka phail jongngi ka long array.c |
02:10 | Ha kane ka prokram, ngin calculate ia ka sum jong ki elements ba buh ha u array. |
02:16 | Shah ngan batai ia ka code mynta. |
02:18 | Kane ka dei ka header file. Jong ngi. |
02:20 | Kane ka dei ka main() function jong ngi. |
02:22 | Hangne, ngi lah declare bad sdang ia u array star da ka size 3. |
02:28 | Ki elements jong u array ki long 4, 5 bad 6. |
02:33 | Nangta ngi la declare ia u 'integer variable' sum. |
02:36 | Hangne ngi add ia ki elements jong u array bad buh ia ka result ha ka sum. |
02:41 | Kynmaw ba ia u 4 yn buh ha ka index 0, 5 yn buh ha ka index 1bad 6 ynbuh ha ka index 2. |
02:50 | Nangta ngi print ia ka sum. |
02:52 | kane ka dei ka return statement jong ngi. |
02:54 | Mynta, click Save. |
02:57 | Shah ngan execute ia ka prokram. |
02:59 | Sngewbha plie ia ka terminal window da kaba nion Ctrl, Alt and T keys ha kajuh ka porn a ka keyboard jong phi. |
03:09 | Ban compile, type gcc space array dot c space hypen o array bad nion Enter. |
03:19 | Ban execute, type dot slash array (./array). Nion Enter. |
03:24 | Hangne ka output yn pyni kum, |
03:26 | The sum is 15. |
03:28 | Mynta to ngin peit katto katne ki jingbakla ba juh jia ba ngi shait iohi. |
03:32 | Phai biang sha ka prokram jong ngi. |
03:34 | Tharai, hangne ha ka lain ba 4, ngi klet ia ki brackets. |
03:39 | Click Save. To ngin ia peit jia aiu. |
03:42 | Phai biang sha ka terminal. |
03:44 | To ngin compile kumba ha shuwa. |
03:47 | Ngi iohi ia ka jing bakla: |
03:49 | Invalid initializer Bad Expected identifier or bracket ha shuwa u numeric constant. |
03:56 | Kane ka long namar ia ki arrays donkam ban sdang hapoh ki curly brackets. |
04:01 | Phai biang sha ka prokram jong ngi. To ngin pynbeit ia ka jing bakla. |
04:04 | Type ia ki curly brackets hangne ha ka lain ba 4. |
04:09 | Mynta, click Save. |
04:12 | ka shah ia ngi ban execute. Phai biang sha ka terminal. |
04:15 | To ngin compile kumba ha shuwa. To ngin execute kumba hashuwa. |
04:19 | Hooid, ka la treikam. |
04:21 | Mynta ngin execute ia ka juh ka prokram ha ka C++. |
04:25 | Phai biang sha ka prokram jong ngi. |
04:28 | Ngan pynkylla katto katne hangne. |
04:30 | Nyngkon, nion Shift , Ctrl and S keys ha kajuh ka por na ka keyboard jong phi. |
04:38 | Mynta save ia ka phail da ka extension dot cpp (.cpp) bad click Save. |
04:44 | To ngin pynkylla ia ka header file kum iostream. |
04:49 | Mynta kynthup ia ka using statement. |
04:55 | Ka declaration bad initialization jong u array kin long kumjuh ha ka C++. |
05:01 | Namarkata ym don jingkylla ei ei hangne. |
05:04 | Mynta bujli ka “printf” statement da ka “cout” statement. |
05:09 | Pyndam noh ia ka format specifier bad backslash n (\n), mynta pyndam ia u comma bad type ar tylli ki opening angle brackets. |
05:17 | Pyndam ia u bracket hangne. Sa shisien type ar tylli ki opening angle brackets bad hapoh ki double quotes type backslash n (\n). |
05:26 | Mynta, click Save. |
05:29 | To ngin execute. Phai biang sha ka terminal. |
05:32 | Ban compile, type g++ space array dot cpp space hyphen o space array1 |
05:42 | Hangne ngi don u array1 namar ngim kwah ban overwrite ia ka output parameter array jong kaphail array dot c. |
05:51 | Mynta nion Enter. |
05:54 | Ban execute type, dot slash array1(./array1) . Nion Enter. |
05:59 | Ka output yn pyni kum: The sum is 15 |
06:02 | Ngi lah ban iohi ba ka iasyriem ia u Code jong ngi. |
06:07 | Mynta, ngin peit sa kawei pat ka jingbakla ba shait jia. |
06:10 | Phai biang sha ka prokram jong ngi. |
06:12 | Tharai hangne, ha ka lain ba 7, |
06:14 | Ngan type star[1], star[2] bad star[3]; |
06:23 | click Save. To ngin execute. Phai biang sha ka terminal jong ngi. |
06:28 | Shah ngan pyndam ia ka prompt. |
06:30 | To ngin compile kumba hashuwa. |
06:33 | To ngin execute kumba hashwa. |
06:36 | Ngi ioh ia ka output ba khlem khmih lynti. |
06:39 | Kane ka long namar ba ka array index ka sdang na u 0. |
06:43 | Phai biang sha ka prokram jong ngi. Ngin iohi hangne ba ka array index ka sdang na uwei. |
06:49 | Na kata ka daw ka ai ia ka jingbakla. To ngin pynbeit ia ka jingbakla. |
06:54 | Type 0 hangne 1 bad 2. Click Save. |
07:02 | To ngin execute. Phai biang sha ka terminal jong ngi. |
07:05 | To ngin compile kumba hashwa. Execute kumba hashwa. |
07:09 | Hooid, ka la treikam. |
07:12 | Mynta, ngin phai biang sha ki slides jongngi. |
07:14 | To ngin batai lyngkot. |
07:16 | Ha kane ka jinghikai ngi lah tip: |
07:19 | Arrays , Ban declare Single Dimensional Arrays |
07:23 | Ban initialize Single Dimensional Arrays |
07:26 | Nuksa int star[3]={4, 5, 6} |
07:31 | Ban add ia ki elements jong u array, nuksa sum is equal to star 0 plus star 1 plus star 2. |
07:40 | Kum ka assignment, thoh ia ka prokram ban calculate ia ka jing iapher jong ki elements ba buh ha u array. |
07:47 | Peit ia ka video ba lah ban ioh naka link ba la pyni harum. |
07:50 | Ka batai lyngkot ia ka spoken tutorial project. |
07:53 | Lada phim don ka bor internet ba khlain, phi lah ban shu download sa peit pat hadien. |
07:57 | The Spoken Tutorial Project Team: |
08:00 | ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials. |
08:03 | Yn ai syrnod ia kiba pass ia ka online test. |
08:06 | Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka
contact@spoken-tutorial.org |
08:13 | “Spoken Tutorial” Project ka dei ka bynta jong ka Talk to a Teacher. |
08:17 | La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India. |
08:25 | Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum :
http://spoken-tutorial.org\NMEICT-Intro. |
08:30 | La pynkylla sha ka ktien khasi da i Godwin pyrbot bad nga i John Nngkynrih. |
08:33 | Khublei naka bynta ba iasnohlang. |