C-and-Cpp/C3/Working-With-2D-Arrays/Khasi

From Script | Spoken-Tutorial
Revision as of 13:18, 27 October 2017 by John123 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:01 Ngi pdiang sngewbha ia phi sha ka Spoken Tutorial halor ka 2 Dimensional Arrays jong ka C bad C++.
00:08 Ha kane ka jinghikai, ngin pule shaphang-
00:10 Kaei ka 2 Dimensional array.
00:13 Ngin leh ia kane lyngba ki nuksa.
00:16 Ban record ia kane ka jingpule, nga pyndonkam da
00:18 Ubuntu Operating System version 11.10,
00:22 gcc bad g++ Compiler version 4.6.1 on Ubuntu.
00:29 To ngin sdang da ka jinglamphrang shaphang ka 2 dimensional Array.
00:33 2D arrays la buh ha ka row column matrix.
00:38 Ka index ba sha kadiang ka pyni ia ka row.
00:41 Ka index ba ha kamon ka pyni ia ka column.
00:44 Ka index ba sdang jong ka matrix ne array ha ka C bad C++ barabor ka long 0.
00:52 Hangne, ngi iohi ba u 2 Dimensional array hapoh ka row column matrix.
00:58 Ka index ba sdang ka long 0.
01:01 Mynta, to ngin peit kumno ban declare ia ka 2 dimensional array.
01:04 Ka Syntax jong kane ka long:
01:07 data-type ,array name, row and column.
01:13 Nuksa, hangne ngi lah declare ia ki 2 dimensional array num da ki 2 rows bad 3 columns.
01:21 Mynta to ngin peit da ki nuksa.
01:23 Nga lah dep type ia ka prokram, to ngan plie ia ka.
01:28 Kynmaw ba ka kyrteng ka phail jongngi ka long 2d hyphen array dot c.
01:33 Ha kane ka prokram, ngin khein ia ka sum jong ki elements jong ka 2 dimensional array.
01:41 To ngan batai ia ka code mynta.
01:44 Kane ka dei ka header file. Jongngi.
01:46 Kane ka dei ka main() function jong ngi.
01:49 Hangne ngi lah declare ia ki variables i bad j.
01:53 Kumta ngi lah declare ia u num1 ha ki 3 rows bad 4 columns.
01:58 Bad num2, sa shisien ha ki 3 rows bad 4 columns.
02:03 num1 bad num2 kidei ki 2 dimensional arrays.
02:07 Hangne, ngin shim ia ki elements jong ka matrix num1 kum ka input na u nongpyndonkam.
02:13 Ki elements la buh ha ka row-wise.
02:16 Ngi lah considered ia u i na kabynta ki rows bad j na kabynta ki columns.
02:22 Ka for loop kan check ia ka condition kaba u i u iaid na u 0 haduh 2.
02:28 Ka for loop kan check ia ka condition kaba u j u iaid na u 0 haduh 3.
02:33 Kumjuh ruh, hangne ngin shim ia ki elements jong ka matrix num2 kum ka input na u nongpyndonkam.
02:40 Hangne ngi pyni ia ka matrix num1.
02:43 Hangne percent 3d la pyndonkam ban align ia ka matrix halor ka terminal.
02:49 Mynta, ngi pyni ia ka matrix num2.
02:52 Kumta ngi add ia ka num1 matrix bad ka num2 matrix bad pyni ia ka result.
02:59 Kane ka dei ka return statement jongngi.
03:01 Mynta, click Save.
03:05 To ngin execute ia ka program.
03:07 Sngewbha plie ia ka terminal window da kaba nion Ctrl, Alt bad T keys ha kajuh ka por na ka keyboard jong phi.
03:15 Ban compile, type gcc space 2d hyphen array dot c space hyphen o space arr bad nion Enter.
03:28 Ban execute, type dot slash arr (./arr), mynta nion Enter .
03:34 Hangne ngi iohi Enter the elements of 3 into 4 array num1.
03:39 Ngan enter ia ki values mynta.
03:52 Mynta ngi iohi Enter the elements of 3 into 4 array num2.
03:57 Ngan enter ia ki values.
04:10 Ia Ka output la pyni.
04:13 Hangne ngi lah ban iohi ia ka num1 matrix.
04:16 Hangne ngi lah ban iohi ia ka num2 matrix.
04:20 Bad kane ka dei ka sum jong u num1 bad num2.
04:24 Mynta ngin peit kumno ban execute ia ka juh ka program hapoh C++.
04:29 Nga la shna ia ka program. Ngan plie ia ka bad ngan batai.
04:34 Kane kadei ka program na kabynta ka 2 Dimensional arrays hapoh C++.
04:38 Kynmaw ba ka kyrteng ka phail jongngi kalong 2d hyphen array dot cpp.
04:43 Ka extension ka long dot cpp (.cpp).
04:47 To ngan batai ia ka code mynta.
04:50 Kane ka dei ka header phail jong ngi kum iostream.
04:53 Kane ka dei ka using statement jong ngi.
04:56 Kane kadei ka main() function jong ngi.
04:58 Hangne ngi don ka cout function ha kaba ngi pyndonkam ia ka cout ban print ia ka output hapoh C++.
05:06 Kumta ngi don ka cin function. Ngi pyndonkam cin ban pule ia ka line hapoh C++.
05:13 Hangne, ngi pyndonkam / t bit kamut horizontal tab ha kaba ka ryngkat bad ki 4 spaces.
05:21 Baroh ki code ki ialong kumjuh kum ka C code jongngi.
05:25 Mynta click Save.
05:27 To ngin execute. Phai biang sha ka terminal.
05:31 To ngan pyndam ia ka prompt.
05:33 Ban compile, type g++ space 2d hyphen array dot cpp hyphen o space arr1 bad nion Enter.
05:47 Ban execute, type dot slash arr1, mynta nion Enter.
05:52 Hangne ngi iohi Enter the elements of 3 into 4 array num1.
05:57 Ngan enter ia ki values.
06:07 Mynta, ngi iohi Enter the elements of 3 into 4 array num2.
06:13 Ngan ai ia ki values kum:
06:24 Ia ka output la pyni.
06:26 Ngin iohi ia ka num1 matrix, ka num2 matrix.
06:31 Bad kane ka dei ka sum jong u num1 bad num2.
06:36 Mynta ngi lah poi sha ka bakut jog ka jinghikai.
06:39 Phai biang sha ka slide jong ngi. To ngin batai lyngkot.
06:43 Ha kane ka jinghikai ngi lah pule:
06:45 Ban add elements hapoh ka 2D array.
06:48 Ban print 2D array.
06:50 Bad ban calculate ia ka sum jong ka 2Dimensional array.
06:54 Kum ka assignment: Thoh ia ka prokram kaban leit sha ki ar 2Dimensional arrays kum ka input na u nongpyndonkam.
07:01 Subtract ia ki bad wad ia ka result.
07:05 Peit ia ka video ba la ai ha ryngkat ka link ba la pyni harum:
07:08 Ka batai lyngkot ia ka Spoken Tutorial Project.
07:11 Lada phim don ka bor internet ba khlain, shu download sa peit pat hadien.
07:15 Ka Spoken Tutorial Project Team:
07:17 ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials.
07:21 Yn ai syrnod ia kiba pass ia ka online test.
07:25 Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka

'contact@spoken-tutorial.org

07:32 Spoken Tutorial Project ka dei ka bynta jong ka Talk to a Teacher.
07:36 La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India.
07:43 Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum :
07:48 La pynkylla sha ka ktien khasi da i Godwin pyrbot bad nga I John Nongkynrih.
07:54 Khublei naka bynta ba iasnohlang

Contributors and Content Editors

John123