C-and-Cpp/C3/String-Library-Functions/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Ngi pdiang sngewbha ia phi sha ka Spoken Tutorial jong ka String Library Functions in C.
00:07 Ha kane ka jinghikai ngan pule shaphang,
00:09 String Library Functions.
00:11 Ngin leh ia kane lyngba ka jingiarap jong ki katto katne ki nuksa.
00:15 Ban record ia ka jinghikai, Nga pyndonkam da ka
00:18 Ubuntu Operating System version 11.10,
00:22 gcc Compiler Version 4.6.1.
00:27 To ngin sdang da ka jinglamphrang shaphang ka string library functions.
00:31 Kine ki dei ki group jong ka functions ban implement ia ka operations halor jong ki strings.
00:36 Bun jait ki operations kum ban copy, concatenation, searching etc lah ban iarap.
00:44 To ngin peit ia katto katne ki string library functions.
00:48 Hangne ngi don ka strncpy function.
00:52 Ka syntax na kabynta jong kine ka long strncpy(char str1, char str2, and int n );
01:02 Ka copy ia ki n character ba nyngkong jong ka str2 sha ka string str1.
01:09 Nuksa, char strncpy( char hello, char world, 2);
01:16 Ka output kan long Wollo .
01:21 Hangne ngi ioh Wo na ka string 2 bad kiwei pat ki characters na ka string 1.
01:29 Mynta ngin peit strncmp function, ka syntax jong kane ka long strncmp(char str1, char str2, and int n);
01:42 Yn compare shuwa ia ki n character jong ka string 2 da ka string 1.
01:48 Nuksa int strncmp(char ice, char icecream, and 2);
01:55 Ka output kan long 0.
01:58 Mynta ngin peit kumno ban pyndonkam ia ka string library functions.
02:02 Ngan pyni iaphi katto katne ki string functions ba juh pyndonkam bha.
02:07 Nga lah type ia ka prokram halor ka editor,
02:10 Ngan plie iaka.
02:12 Hangne, ngi ioh iaka string length function.
02:15 Kynmaw ba ka kyrteng ka phail jong ngi ka long strlen.c.
02:20 Hangne, ngin wad ia ka length jong ka string.
02:23 Kine ki dei ki header phail kumstdio.h bad string.h.
02:29 Kane ka dei ka main() function jongngi.
02:31 hangne ngi don u character variable 'arr'.
02:35 La buh iaka ha ka value 'Ashwini' .
02:38 Nangta ngi don u integer variable len1 .
02:42 Hangne ngin wad ia ka length jong ka string da kaba pyndonkam strlen function.
02:48 Ia Ka jingmih yn buh kapoh ka 'len1'.
02:52 Kumta ngi print ia ka string bad ka length jong ka string.
02:56 Bad kane ka dei ka return statement jong ngi.
02:59 Mynta to ngin execute ia ka program.
03:01 Plie ia ka terminal window da kaba nion
03:04 Ctrl, Alt and T keys ha kajuh ka por na ka keyboard jong phi.
03:09 Ban compile, type: "gcc" space "strlen.c" space “-o” space “str1”. Nion Enter.
03:19 Type (dot slash) ./str1. Nion Enter.
03:24 Ka output la pyni kum
03:26 string = Ashwini, Length = 7
03:30 Phi lah ban niew hangne. 1,2,3,4,5,6, and 7.
03:37 To ngin peit sa kawei pat ka string function.
03:40 Hangne ngi don ka string copy function.
03:43 Kynmaw ba ka kyrteng jong ka phail jong ngi ka long strcpy.c .
03:48 Hangne, ngin copy ia ka source jong ka string sha ka target string.
03:53 Hangne ngi don 'Ice' hapoh ka source string, Kan copy sha ka target string.
03:59 Kane ka dei ka strcpy function jong ngi
04:02 Hangne ngin print ia ka source string bad ka target string.
04:07 To ngin execute bad peit.
04:09 Phai biang sha ka terminal jong ngi.
04:11 Ban compile, type gcc space strcpy.c space hyphen o space str2. Nion Enter
04:20 Type (dot slash)./str2 . Nion Enter .
04:24 Ka output la pyni kum:
04:26 source string = Ice
04:29 target string = Ice
04:32 Mynta to ngin peit sa kawei pat ka string function.
04:34 Mynta ngin iohi ia ka string compare function.
04:37 Kynmaw ba ka kyrteng jong ka phail jong ngi ka long strcmp.c.
04:42 Hangne, ngin compare ia ar tylli ki strings.
04:46 Hangne ngi don ki character variables kum str1 bad str2 .
04:52 str1 la buh ia ka value kum 'Ice' bad str2 la buh ia ka value kum 'Cream'.
04:58 Hangne ngi ioh ia ki integer variables kum i bad j.
05:03 Hangne ngin compare ia ka string da kaba pyndonkam ka strcmp function.
05:08 Hangne ngi compare str1 i.e 'Ice' da ka 'Hello'.
05:14 Ka jingmih la buh hapoh ka i.
05:16 Hangne ngin compare ia ka string2 i.e 'Cream' da ka 'Cream'
05:23 Ka jingmih la buh ha poh u j.
05:25 Nangta ngi print baroh ar tylli ki jingmih.
05:28 Bad kane ka dei ka return statement jong ngi.
05:31 To ngin execute ia ka program.
05:33 Phai biang sha ka terminal jong ngi.
05:35 Ban compile type gcc space strcmp.c space hyphen o space str3
05:46 Nion Enter.
05:47 Type (dot slash) ./str3
05:50 Ia Ka output la pyni kum 1, 0.
05:54 Phai biang sha ka program jong ngi.
05:56 Hangne ngi ioh 1 bad hangne ngi ioh kum 0.
06:01 To ngin phai biang sha ki slides jong ngi.
06:04 To ngin batai lyngkot.
06:06 Ha kane ka jing hikai ngi lah pule shaphang ka String library functions-
06:09 strlen()
06:11 strcpy()
06:13 strcmp() strncpy()
06:16 bad strncmp().
06:19 kum ka assignemnt,
06:21 Thoh ia ka C Program ban concatenate ia ka String 'best' bad String 'bus'.
06:25 Hint: strcat(char str1, char str2);
06:32 Bad ruh peit sha kiwei pat ki functions hapoh ka string library.
06:36 Peit ia ka video ba la ai ha ryngkat ka link ha trai.
06:39 Ka batai lyngkot ia ka Spoken Tutorial Project.
06:42 Lada phim don ka bor internet ba khlain, shu download sa peit pat hadien.
06:46 Ka Spoken Tutorial Project Team:
06:49 ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials.
06:52 Yn ai syrnod ia kiba pass ia ka online test.
06:56 Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka

'contact@spoken-tutorial.org

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

Contributors and Content Editors

John123