C-and-Cpp/C4/Working-With-Structures/Khasi
From Script | Spoken-Tutorial
Time | Narration |
00:01 | Ngi pdiang sngewbha iaphi sha ka spoken tutorial halor ka Structures in C and C++. |
00:06 | Ha kane ka jing hikai ngin pule shaphang, |
00:08 | Kaei ka Structure. |
00:10 | Declaration jong ka structure. |
00:13 | Ngin leh ia kane lyngba ki nuksa. |
00:15 | Ban record ia ka jinghikai, Nga pyndonkam da |
00:18 | Ubuntu Operating System version 11.10, |
00:22 | gcc and g++ Compiler version 4.6.1. |
00:28 | To ngin sdang da ka jinglamphrang halor ka Structure . |
00:31 | Haba u wei ne bun ki variables la grouped lang ha kawei ka kyrteng, la khot structure. |
00:37 | Structure lapyndonkam ban group ia bunjait ki data ha ka wei ka object. |
00:42 | La khot iaka kum compound data-type. |
00:45 | La ju pyndonkam ha kaban group ia ki information ba iadei lang. |
00:49 | Mynta ngin peit ia ka syntax ban declare ia ka structure. |
00:52 | Hangne, ka keyword struct ka batai ia ka compiler ba ia ka structure la declared. |
00:59 | strcut_name kadei ka kyrteng jong ka structure. |
01:02 | eg. struct employee; |
01:04 | Phi lah ban ai kano kano ka kyrteng. |
01:07 | Mynta ngin peit kumno ban declare ia ka structure variable. |
01:10 | Ka syntax jong kane kalong: |
01:13 | struct struct_name and struct_var; |
01:17 | struct_var kadei ka variable jong type struc_name. |
01:21 | nuksa, struct employee addr; |
01:26 | addr ka dei ka variable jong type employee. |
01:30 | To ngin phai sha ka nuksa jong ngi. |
01:33 | Nga lah dep type ia ka program halor ka editor. Te, to ngan plie iaka. |
01:37 | Kynmaw ba ka kyrteng ka phail jongngi kalong structure.c. |
01:41 | ha kane ka program ngin khein ia ka marks baroh lai subjects da kaba pyndonkam da ka structure. |
01:48 | To ngan batai ia ka code mynta. |
01:51 | Kane ka dei ka header phail jong ngi. |
01:53 | Hangne ngi lah declare ia ka structure kum student. |
01:57 | Nangta ngi lah declare lai tylli ki integer variables kum English, maths bad science. |
02:03 | Ka Variables ba batai hapoh ka structure la khot ia ka kum ka member jong ka structure. |
02:09 | Kane ka dei ka main() function jong ngi. |
02:11 | Hangne ngi lah declare ia u integer variable 'total'. |
02:16 | Mynta ngi lah declare ia ka structure variable stud, stud ka dei ka variable jong type student, la pyndonkam ha kaban access bad modify ia ki structure members. |
02:28 | Hangne ngi lah modify ia ki members |
02:31 | da kaba assign ia ki values kum 75, 70 and 65. |
02:37 | Hangne ngin khein ia baroh lai subjects. |
02:41 | Nangta ngi print ia ka result. |
02:44 | Kane ka dei ka return statement jong ngi. |
02:46 | Mynta click Save . |
02:48 | To ngin execute ia ka program. |
02:50 | Sngewbha plie ia ka terminal window da kaba nion |
02:54 | Ctrl, Alt bad T keys ha kajuh ka por na ka keyboard jong phi. |
02:59 | Ban compile, type gcc space structure.c space hyphen o space struct bad nion Enter. |
03:12 | Ban execute, type (dot slash)./struct. Nion Enter. |
03:17 | Ka output la pyni kum: |
03:20 | Total is 210 |
03:22 | Mynta ngin execute ia ka juh ka program ha ka C++ . |
03:26 | Phai biang sha ka program jong ngi. |
03:28 | Ngan edit ia kajuh ka code. |
03:30 | Nyngkong nion Shift, Ctrl bad S keys ha kajuh ka por na ka keyboard. |
03:37 | Mynta save ia ka phail lyngba ka extension .cpp |
03:41 | bad click save. |
03:43 | To ngin pynkylla ia ka header phail kum iostream. |
03:47 | Mynta pynrung lang ia ka using statement |
03:53 | bad click save. |
03:56 | Structure declaration ha ka C++ ka long ka juh kum ha ka C. |
04:01 | Te, ym donkam ban pynkylla ei ei hangne. |
04:05 | Ha kaba kut ngin bujli ia ka printf statement da ka cout statement. |
04:12 | Pyndam ia ka format specifier bad (backslash n) \n. |
04:15 | Mynta pyndam ia u comma. |
04:17 | Type artylli ki opening angle brackets. |
04:20 | hangne, pyndam ia ka closing bracket |
04:22 | bad type artylli ki opening angle brackets. |
04:25 | Bad hapoh kine ki double quotes, type \n (backslash n). |
04:29 | Mynta click Save. |
04:31 | To ngin execute ia ka program. |
04:33 | Phai biang sha ka terminal jongngi. |
04:35 | Ban compile, type g++ space structure.cpp space hyphen o space struct1 . |
04:46 | Hangne ngi don struct1 namar ngim kwah ban overwrite ia ka output parameters struct na kabynta ka phail structure.c . |
04:55 | Mynta nion Enter. |
04:57 | Ban execute, type (dot slash) ./struct1. Nion Enter. |
05:03 | Ka output la pyni kum: |
05:05 | Total is 210 |
05:08 | Phi lah ban iohi ba ka output ka long kumjuh kum ka C code jong ngi. |
05:12 | Mynta to ngin phai biang sha ka slide jong ngi. |
05:14 | Ngin batai lyngkot mynta. Ha kane ka jinghikai ngi lah pule shaphang ka, |
05:18 | Structure, Syntax jong ka structure |
05:20 | eg. struct struct_name; |
05:23 | Ban access ia ki members jong ka structure. |
05:25 | Eg: stud.maths = 75; |
05:30 | Bad ban add ia ki structure variables. |
05:33 | Eg: total = stud.eng + stud.maths + stud.science; |
05:40 | Kum ka assignment, thoh ia ka program ban pyni ia ki records jong ki employee. |
05:44 | Kum ka kyrteng, address, designation, bad salary. |
05:49 | Peit ia ka video ba lah ban ioh naka link ba la pyni harum. |
05:52 | Ka batai lyngkot ia ka spoken tutorial project. |
05:54 | Lada phim don ka bor internet ba khlain, phi lah ban shu download sa peit pat hadien. |
05:59 | Ka Spoken Tutorial Project Team: |
06:01 | ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials. |
06:04 | Yn ai syrnod ia kiba pass ia ka online test. |
06:08 | Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka
contact@spoken-tutorial.org |
06:15 | “Spoken Tutorial” Project ka dei ka bynta jong ka Talk to a Teacher. |
06:18 | La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India. |
06:25 | Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum : |
06:29 | La pynkylla sha ka ktien khasi da i Godwin pyrbot bad nga I John Nongkynrih |
06:33 | Khublei naka bynta ba iasnohlang |