Difference between revisions of "C-and-Cpp/C2/Logical-Operators/Khasi"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with "{| border=1 || '''Time''' || '''Narration''' |- | 00:02 | | Ngi pdiangsngewbha ia phi sha ka spoken tutorial halor ka '''Logical operators in C and C++.''' |- | 00:08 | Ha...")
 
 
Line 307: Line 307:
 
| 06:04
 
| 06:04
 
|Click  '''Save'''.
 
|Click  '''Save'''.
 
  
 
|-
 
|-

Latest revision as of 21:23, 17 October 2017

Time Narration
00:02 Ngi pdiangsngewbha ia phi sha ka spoken tutorial halor ka Logical operators in C and C++.
00:08 Ha kane ka jinghikai, ngin pule shaphang ki Logical operators kum: Logical AND e.g. expression1 && expression2
00:16 Logical OR eg. expression1 OR expression2
00:21 Logical NOT eg. not (Expression1)
00:25 Ngin leh ia kane da ka jingiarap jong ki nuksa.
00:28 Ban record ia ka jinghikai, Nga pyndonkam da ka: Ubuntu 11.10 kum ka operating system,
00:33 gcc and g++ Compiler version 4.6.1 on Ubuntu.
00:39 To ngin sdang da ka jing lamphrang jong ka logical operators.
00:43 Ha ka C bad C++, true ka long ia uno uno u value lait na u 0.
00:48 U Bym dei u zero kamut true
00:50 Bad zero kamut false.
00:53 Ka jingiathuh da kaba pyndonkam ia ki logical operators return 1 na kabynta true bad 0 na kabynta false.
00:58 Mynta ngan batai ia ki logical operators da ka jingiarap jong ki nuksa.
01:03 Kane ka long ka prokram jong ka logical operators ha ka C.
01:08 Hapoh ka main block,
01:10 kane ka statement ka declares ia ki variables a,b bad c kum ki integers.
01:16 Ka printf statement ka prompts ia u nongpyndonkam ban enter ia ki values jong u a,b bad c.
01:21 Ka scanf statement ka shim ia ka input na u nongpyndonkam ia ki variables a, b bad c.
01:28 Hangne, ngi ianujor ia ki values jong u a with b bad c ban wad ia u baheh duh.
01:33 Ban ia nujor ha kajuh ka por, ngi pyndonkam da ka logical AND operator.
01:38 Hangne, baroh ki conditions ki hap ban dei na kabynta ka logical AND ban return ia ka true value.
01:43 Ka jing pynpaw kam evaluated shuh shuh halor ba ka encounter ia ka false condition.
01:49 Kumta, ka expression (a>c) la evaluated tang lada ka (a>b) ka dei.
01:56 Lada u a u duna ia u b, te ka expression yn ym evaluate shuh shuh.
02:02 Kane ka statement la evaluate lada ka condition kaba ha shuwa ka dei.
02:07 Next (b>c) la evaluated.
02:10 Lada ka condition ka dei, kumta b is greatest la pyni ha ka screen.
02:16 lymkumta c is greatest la pyni ha ka screen.
02:21 Mynta ngin phai sha ka logical OR operator.
02:24 Hangne, kawei na ki condition kan dei ban dei namar ka logical OR kan return ia ka true value.
02:30 Ia Ka expression khlem evaluate shuh shuh halor ban encounter ia ka true condition.
02:35 Te, lada u a == zero, nangta ka basah jong ki ar tylli ki expressions yn ym evaluate shuh.
02:43 Kane ka printf statement la executed lada u wei na kine ki a, b or c ki long 0.
02:49 Ha kaba kut jong ka prokram. return 0 bad ending curly bracket.
02:54 Mynta save ia ka program.
02:57 Save it with extension .c (dot c).
03:00 Nga lah save ia ka phail jongnga kum logical.c.
03:03 Plie ia ka terminal da kaba nion Ctrl, Alt and T keys ha kajuh ka por.
03:08 Ban compile ia ka code type gcc space logical dot c space minus o space log. Nion Enter.
03:23 Ban execute, type ./log (dot slash log)
03:27 Nion Enter.
03:29 Ngan enter ia ki values kum: 0, 34, 567
03:39 Ka output la pyni kum:
03:42 c is greatest.
03:45 Ka product jong u a, b bad c ka long zero.
03:50 Phi dei ban pyrshang ban execute ia kane ka prokram lyngba ki wei pat ki jait input.
03:55 Mynta to ngin thoh ia ka juh ka prokram ha ka C++.
03:59 Nga la dep shna ia ka prokram bad yn ia peit ia ka.
04:03 Kane ka long ka code ha ka C++.
04:06 Mynta shna ia ka juh ka prokram ha ka C++, ngin pynkylla katto katne.
04:11 Kan don ka jingkylla ha ka header phail.
04:14 using statement lah pyndonkam.
04:18 Bad ruh kan don ka jing iapher ha ka output bad input statements.
04:21 Ki operators ki behave kumjuh kumba long ha ka C.
04:25 Click Save.
04:27 Kynmaw bha ba ia ka phail yn save da ka extension .cpp (dot cpp).
04:31 Plie ia ka terminial da kaba nion ia u Ctrl, Alt and T keys ha kajuh ka por.
04:36 Ban compile ia ka prokram type g++ logical.cpp space minus o space log1. Nion Enter.
04:49 Ban execute, type ./log1 (dot slash log1).
04:53 Nion Enter.
04:56 Ngan enter ia ki values kum: 0, 34, 567
05:02 Kumta ngi iohi ba ka output ka iasryiem ia ka C prokram.
05:05 Phi dei ban pyrshang ban execute ia ka prokram da ki wei ki jait input ruh.
05:10 Mynta to ngin peit ia ki jingbakla ba ngi shait shem.
05:12 To ngin switch sha ka editor.
05:16 Tharai hangne ngi klet ia ki brackets.
05:20 Pyndam kane bad kane.
05:26 To ngin peit kaei kaban jia, save ia ka prokram.
05:30 Phai biang sha ka terminal.
05:32 Compile bad execute kumba hashuwa.
05:38 Ngi iohi ia ka jingbakla:
05:41 Expected identifier before '(' token.
05:45 Kane ka long namarba hangne ngi don tang ar tylli ki jingiapher ha ka expression.
05:48 Ngi hap ban evaluate iaki kum kawei ka expression, da kaba pyndonkam ia ka AND operator.
05:53 Mynta to ngin phai biang sha ka prokram jong ngi bad ban pynbeit ia ki jing bakla.
05:57 To ngin sdang ban thep ia ki brackets hangne bad hangne.
06:04 Click Save.
06:06 Phai biang sha ka terminal.
06:09 Compile bad execute kum ha shuwa.
06:14 Te kala treikam mynta.
06:22 To ngin batai lyngkot ia ka jinghikai.
06:24 Ha kane ka jinghikai ngi lah tip shaphang * Logical AND, eg. ((a > b) && (a > c))
06:32 Logical OR

eg. (a == 0 || b == 0 || c == 0)

06:39 Kum ka Assignment-
06:41 Thoh ia ka prokram ba shim ia ar tylli ki number kum ki ka input na u nongpyndonkam.
06:44 Check la ki ar tylli ki number ki iaryngkat ne em da kaba pyndonkam ia ka NOT operator. Hint: (a != b)
06:54 Peit ia ka video ba la ai ha ryngkat ka link ha trai.
06:57 Ka batai lyngkot ia ka Spoken Tutorial Project.
06:59 Lada phim don ka bor internet ba khlain, shu download sa peit pat hadien.
07:03 Ka Spoken Tutorial Project Team: ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials.
07:07 Yn ai syrnod ia kiba pass ia ka online test.
07:11 Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka

'contact@spoken-tutorial.org

07:18 Spoken Tutorial” Project ka dei ka bynta jong ka Talk to a Teacher.
07:21 La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India.
07:27 Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum :
07:30 http://spoken-tutorial.org\NMEICT-Intro.
07:37 La pynkylla sha ka ktien khasi da i Godwin pyrbot bad nga i John Nongkynrih

Khublei naka bynta ba iasnohlang.

Contributors and Content Editors

John123