C-and-Cpp/C2/Tokens/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Ngi pdiang sngewbha ia phi sha ka Spoken Tutorial halor kaTokens in C and C Plus Plus.
00:06 Ha kane ka jinghikai ngan batai shaphang,
00:09 Kumno ban define bad pyndonkam ia ka “tokens.”
00:12 Ngin leh ia kane lyngba ka jingiarap jong ka nuksa.
00:15 Ngin peit ruh katto katne ki jingbakla bad ki functions jong ki.
00:20 Ban record ia kane ka jinghikai,
00:21 Ngan pyndonkam da ka “Ubuntu Operating system version 11.10”,
00:26 gcc and g++ Compiler version 4.6.1.
00:33 To ngin sdang lyngba ki tien sdang.
00:36 Token ka dei ka generic word na kabynta ki “data types”, “variables” constants”
00:46 To ngin sdang da ki prokram jong ngi.
00:49 Nga la dep type ia ka code ha ka editor.
00:53 To ngan plie ia ka.
00:56 Kynmaw ba ka phail jong ngi kadei “tokens.c’.
01:04 Ha kane ka prokram ngin initialize ia ki variables bad print ia ki values.
01:09 To ngan batai mynta ia ka code.
01:12 Kane kadei ka header phail jong ngi.
01:16 Kane kadei ka main function jong ngi.
01:20 Hangne, “int” kadei ka “keyword”.
01:22 Ka “compiler” ka tip ia ka jing mut jong ka “keyword”.
01:26 “a” kadei ka integer “variable”.
01:28 Ngi lah assigned ia ka value jong u “2” ha ka.
01:32 La khot ia ka kum ka initialization.
01:35 Lada ia u value ym pat assign sha u variable nangta lah khot kum ka declaration jong u variable.
01:43 Hangne, “b” kadei ka “constant”.
01:46 Ngi lah initialized ia u “b” da kaba assign ia u value jong u 4 ha ka.
01:53 “const” keyword la juh shna kum “read only” variable.
01:58 To ngin switch biang sha ki slides jong ngi ban tip shuh shuh shaphang ki keywords bad constant.
02:06 “Keywords” kadon ka meaning kaba biang kaba ymlah ban pynkylla.
02:11 Ki“keywords” ym lah ban pyndonkam kum ka kyrteng“variable”
02:15 Don kumba 32 tylli ki “keywords” ha ka C.
02:18 Ban jer kyrteng katto katne, “auto”, “break”, “case”, “char”, “enum”, “extern”, etc.
02:28 Constants: constants kidei ki fixed values.
02:33 Kin ym lah ban kylla ha ka por ba execute ia ka prokram.
02:38 Ka don ar jait ki constants, Numeric constants bad Character constants.
02:45 Mynta ngin phai biang sha ka prokram jong ngi.
02:47 Hangne, “float” ka dei ka data type jong u variable “c”.
02:52 Ngi lah assigned ia ka u value jong “1.5”.
02:56 '“Data type” kadei ka finite set jong ki values ryngkat bad ki set of rules.
03:04 Hangne, “d” u dei u “variable”.
03:07 “char” bad single quotes ki batai ba ngi lah ia deal bad ki “character”.
03:12 Ha kaba kut, “d” u dei u “character variable” ba buh ha u value “A”.
03:20 Ka kham suk ban peit ba “int, double, float” bad “char” ki dei ki data types.
03:30 “a,” “c” bad “d” ki dei ki “variables”.
03:35 Mynta ngin phai biang ka ki slides jong ngi.
03:37 Ngin tip shuh shuh shaphang ki data types bad variables.
03:48 Data types: To ngin sdang da u integer data type.
03:50 Lah declared ia ka kum “int”.
03:53 Lada ngi kwah ban print ia u integer data type, ngin pyndonkam “%d” kum ka format specifier.
04:01 Kumjuh, ngin pyndonkam “float” bad “%f”na ka bynta ka floating point numbers.
04:09 Na kabynta ka character data type, ngin pyndonkam “char” bad “%c”.
04:15 Bad nakabynta ka double data type, ngin pyndonkam “double” bad “%lf” kum ka format specifier.
04:24 Mynta ngin peit ia ka range jong ki data types.
04:29 “Integer” data type ka don ka range jong kane
04:34 “Floating point” ka don ka range jong kane
04:39 “Character” ka don ka range ha kane
04:42 Bad “Double” ka don ka range ha kane
04:47 Ki values ba buh ha ka variable kim dei ban heh ne duna na kane ka range.
04:56 Mynta ngin phai biang sha ki variables.
05:00 Variable ki dei ki kyrteng jong ki data.
05:02 Ka lah ban pyndonkam ha kaba buh ia u data value.
05:06 Ki values lah ban kylla haba dang iaid ka prokram.
05:10 Shuwa ban pyndonkam ia u variable, ka dei ban declare.
05:14 Ngi dei ban pyrshang ban ai ia ka jingmut jong ki kyrteng ki variables.
05:18 Nuksa john, marks, sum etc.
05:24 Mynta ngin phai biang sha ka prokram jong ngi.
05:27 Hangne, “printf” ka dei ka kyrteng jong ka“identifier”nakabynta kane ka function.
05:32 Ngin phai biang sha ka slide jong ngi.
05:35 To ngin tip shaphang ki identifiers.
05:38 “identifiers” ki dei ki user defined names.
05:41 Ka “identifier”ka kynthup ia ki letters bad digits.
05:46 Baroh ki uppercase bad lowercase letters lah shah.
05:51 U character banyngkong un dei u alphabet ne underscore.
05:55 Mynta ngin phai sha ka prokram jong ngi.
05:58 Hangne ngi lah initialized ia ki variables bad constants.
06:02 Hangne ngin print ia ka.
06:05 Bad kane ka dei ka return statement jongngi.
06:08 Mynta click Save.
06:10 To ngin execute ia ka prokram.
06:12 Sngewbha plie ia ka terminal window da kaba nion “Ctrl,” “Alt” bad “T”keys ha kajuh ka por na ka keyboard jong phi.
06:21 Ban compile, type “gcc space tokens dot c space hyphen o tok”. Nion Enter.
06:30 Ban execute, type “./tok” (dot slash tok).
06:35 Ia ka jingmih lah pyni.
06:39 Ngin peit ba hangne ngi don hynriew tylli ki values hadien u decimal point.
06:44 Bad hangne ngi don ar tylli ki values.
06:48 Mynta to ngin wad kumno kane kan jia. Ngin phai biang sha ka ka prokram jong ngi.
06:54 Kane ka long namar ba ngi don “% point 2f” hangne.
06:59 Ka pyni ba ngi lah ban print tang ar tylli ki values hadien u decimal point.
07:04 Tharai hangne nga kwah ia ka output da lai tylli ki decimal places.
07:09 To ngin bujli % point 2f da % pint 3f.
07:16 Mynta click Save.
07:19 Ngin phai biang sha ka terminal jongngi.
07:22 Compile kumba mynshuwa, execute kumba mynshuwa.
07:28 Ngin peit hangne ba lai tylli ki value hadien u decimal point.
07:33 Mynta ngin execute ia ka juh ka prokram ha C++.
07:36 Ngin phai biang sha ka prokram jong ngi.
07:40 Ngan pynkylla khyndiat hangne.
07:42 Nyngkong nion “Shift+Ctrl+s” keys ha kajuh ka por na ka keyboard jong phi.
07:50 Mynta save ia ka phail ba don extension “.cpp” bad click save.
07:58 To ngin pynkylla ia ka header phail kum “iostream”
08:03 Mynta kynthup lang ka “using” statement.
08:08 Bad click Save.
08:11 Mynta bujli ka “printf” statement da ka “cout” statement.
08:15 Namar ngi pyndonkam ka “cout<<”function ban print ia u line ha ka C++.
08:21 Click ia ka Search for bad replace text option.
08:27 Type hangne printf opening bracket “(“
08:33 Bad ha ka column hangne type, cout bad ar tylli ki opening angle brackets “<<”.
08:40 Mynta click Replace All bad click close.
08:45 Ngim donkam ia ka “format specifier” bad '\n'
08:50 To ngin pyndam ia ki.
08:52 Mynta pyndam ia u comma bad type ar tylli ki opening angle brackets.
09:01 Click Save. Mynat pyndam noh u closing bracket.
09:04 Type biang ar tylli ki opening angle brackets
09:09 Bad hapoh ki double quotes type \n.
09:16 Mynta click Save.
09:20 To ngin execute ia ka prokram. Ngin phai biang sha ka terminal jong ngi.
09:24 Ban compile, type “g++ space tokens dot cpp space hyphen o space tokl”.
09:35 Hangne ngi buh “tokl” namarba ngim kwah ban overwrite ia ka output parameter tok halor ka phail tokens.c.
09:46 Mynta nion Enter.
09:48 Ban execute, type “./tokl”. Nion Enter.
09:55 Ia ka output lah pyni.
09:59 Mynta to ngin phai sha ki katto katne ki jing bakla ba shait jia.
10:03 Ngin phai biang sha ka prokram jong ngi.
10:05 Tharai hangne ngan reassign thymmai ia u value sha u b kum 8.
10:12 Mynta click Save. To ngin peit jia aiu.
10:15 Ngin phai biang sha ka terminal jong ngi.
10:17 To ngin pyndam ia ka prompt.
10:22 Mynta compile biang kumba mynshuwa.
10:26 Ngin peit ia ka jingbakla ha ka lain ba 7 ha ka tokens jong ngi. cpp file.
10:32 “Assignment of read only variable ‘b’”.
10:36 Ngin phai biang sha ka prokram jong ngi.
10:39 Kane ka long namar ba u ‘b’ u dei u constant. Constants kidei ki fixed values.
10:45 Kim ju kylla ha kapor ba execute ia ka prokram.
10:49 Namarkata ka pyni ia ka jingbakla. To ngin pynbeit ia ka jingbakla.
10:54 Pyndam ia kane. Click Save.
10:57 To ngin execute biang. Ngin phai biang sha ka terminal jong ngi.
11:01 Compile biang kumba mynshuwa.
11:03 Execute kumba mynshuwa. Hoid, ka la long
11:09 Mynta ngin peit sa kawei pat ka jingbakla ba ju shem.
11:12 Switch biang ia ka prokram jong ngi.
11:15 Tharai hangne nga lah klet noh ia ki single quotes. Click Save.
11:21 To ngin execute. Ngin phai biang sha ka terminal jong ngi.
11:25 Compile biang kumba mynshuwa.
11:28 Ngin iohi ia ka jingbakla ha ka lain ba 9 jong ka tokens jong ngi dot cpp file.
11:34 “ ‘A’was not declared in the scope”. Ngin phai biang sha ka prokram jong ngi.
11:40 Kane ka long namar kano kano badon hapoh ki single quotes la khein ia ki kum ki character value.
11:47 Bad hangne ngi lah declared ia u ‘d’ kum u character variable.
11:53 To ngin pynbeit ia ki jing bakla. Type hangne ki single quotes ha ka lain ba 9
11:59 Mynta click Save. To ngin execute.
12:02 Ngin phai biang sha ka terminal jong ngi.
12:04 Mynta ngin compile kumba mynshuwa.
12:06 Ngin execute kumba mynshuwa. Hoid ka la treikam.
12:13 Mynta switch biang sha ka slide jong ngi.
12:15 To ngin batai lyngkot.
12:16 Ha kane ka jinghikai ngi lah tip,
12:18 Data types eg. Int, double, float etc.
12:24 Variables eg. Int a=2;
12:29 Identifiers eg. Printf() bad
12:34 Constant eg. double const b=4;
12:40 Kum ka assignment,
12:41 Thoh ia ka prokram ban calculate ia ka simple interest.
12:45 Hint: principal*rate*time upon 100,
12:50 Peit ia ka video ba la ai ha ryngkat ka link ba la pyni harum.
12:54 Ka batai lyngkot ia ka Spoken Tutorial Project.
12:56 Lada phim don ka bor internet ba khlain, shu download sa peit pat hadien.
13:01 Ka Spoken Tutorial Project Team
13:03 ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials.
13:07 Yn ai syrnod ia kiba pass ia ka online test.
13:10 Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka 'contact@spoken-tutorial.org
13:19 Spoken Tutorial Project ka dei ka bynta jong ka Talk to a Teacher.
13:24 La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India.
13:30 Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum :
13:35 La pynkylla sha ka ktien khasi da i Godwin pyrbot, Khublei naka bynta ba iasnohlang

Contributors and Content Editors

Winz