C-and-Cpp/C2/First-C-Program/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Ngi pdiangsngewbha ia phi sha ka “Spoken Tutorial” jong ka “First C program”
00:05 Ha kane ka jinghikai, ngin pule shaphang
00:08 Kumno ban thoh ka simple C program
00:11 Kumno ban compile ia ka
00:13 Kumno ban execute ia ka, Ngin sa batai ruh shaphang katto katne ki jingbakla bad ki solutions.
00:18 Ban record ia ka jinghikai, Ngan pyndonkam da
00:21 Ubuntu operating system version 11,10 bad gcc Compiler version 4.6.1 ha Ubuntu.
00:31 Ban leh practical ia kane ka jinghikai
00:33 Phi dei ban nang ia ka Ubuntu Operating system bad ka Editor.
00:38 Katto katne ki editors ki long “vim” bad “gedit”.
00:42 Ngan pyndonkam da “gedit” ha kane ka jinghikai.
00:45 Ia ka jingtip ba kham bniah halor ka jinghikai sngewbha leit sha ka website kumba la pyni harum.

http://spoken-tutorial.org

00:51 To ngan batai iaphi kumno ban thoh ia ka C program lyngba ka nuksa.
00:55 Plie ia ka terminal window da kaba press “Ctrl, Alt bad T”keys ha kajuh ka por na ka keyboard.
01:07 Mynta to ngin plie ia ka text editor. Nangta, ha ka prompt, type
01:12 ' “gedit” space “talk” dot “c” space “&” sign.
01:20 ' “Ngi pyndonkam da u ampersand (&) ban pyllait ia ka prompt.”
01:24 Sngewbha kynmaw ba baroh ki “C” Phail kin don u extension “.c”(dot C)
01:30 Mynta Nion “Enter”,
01:32 Ka text editor ka lah plie.
01:36 To ngan sdang ban thoh ia ka program.
01:39 Type double slash “//” space
01:42 “My first C program”.
01:48 Hangne, la pyndonkam da u double slash ban comment ia ka line.
01:52 Lapyndonkam ia ka Comments ban sngewthuh ia ka jingiaid jong ka program.
01:56 Ka long ka ba donkam na ka bynta ka documentation.
01:58 Kan ai iangi ia ka information shaphang ka program.
02:01 Ia u double slash la khot u single line comment.
02:07 Mynta nion “Enter”.
02:09 Type (hash) “#include” space opening bracket , closing bracket.
02:17 Barabor ka long ka ba bha ban practice ban pyndep shuwa ia ki brackets, nangta sdang ban thoh hapoh jong ka.
02:24 Mynta, hapoh bracket, type “stdio” “(dot).” “h”.
02:30 stdio.h ka dei ka header file.
02:33 Ka “program”ka donkam ban don ka header phail haba pyndonkam ia ka kum ka standard “input/output functions”.
02:41 Mynta nion Enter.
02:43 Type “int” “space” “main” opening, closing bracket.
02:50 “main”ka dei ka “function” ba kyrpang.
02:52 Ka pyni ba ka execution jong ka program kan sdang na une u line.
02:58 Ia Ka opening bracket bad closing bracket la khot ka parenthesis.
03:04 Parenthesis kaba bud na ka “main” ka batai ia u nongpyndonkam ba ka “main” ka dei ka “function”.
03:11 Hangne ka “int” “main function”kan ym shim ia ki “arguments”.
03:15 Kan pynphai ia ka value jong u “integer”.
03:18 Ngin pule shuh shuh shaphang ki “data types” ha kiwei pat ki jinghikai.
03:23 Mynta to ngin switch sha ki slides ban tip kham bniah shaphang ka “Main” function. To ngin leit sha ka slide kaba bud.
03:29 Ha man la ki “program” dei ban don kawei ka main() function.
03:33 Yn ym dei ban don bun lait tang kawei ka main function.
03:36 Lym kumta ka compiler kam lah ban wad ia ka jingsdang jong ka program.
03:41 Ka jingthylli jong ka shijur ki parentheses ka pyni ba ka main kam don “arguments”.
03:46 Ia ki concept jong ka arguments yn sa batai kham bniah lyngba ki jinghikai ki ban sa leh.
03:52 Mynta To ngin phai biang sha ka program jong ngi
03:55 Nion “Enter”.
03:58 Type opening curly bracket “{”.
04:00 Ka opening curly bracket ka pyni ia ka jingsdang jong ka “function” “Main”.
04:04 Nangta type closing curly bracket “}”.
04:08 Ka closing curly bracket ka pyni ia ka jingkut jong ka “function” “main”.
04:13 Mynta hapoh ki bracket nion “Enter” arsien,
04:16 Pyniaid ia u cursor shi lain sha jrong.
04:20 Ka indentation ka pynlong ia ka code ban suk ban pule.
04:23 Ka iarap ruh ban wad ia ki jingbakla kham kloi.
04:25 To ngin ai space laisien hangne
04:29 Bad type “printf” opening bracket closing bracket “()”
04:34 '“printf” ka dei ka standard C function ban print ia ka output jong ka terminal
04:39 Hangne, hapoh ki brackets, ha ki double quotes.
04:43 Kano kano kaba don hapoh ka double quotes, ha ka printf statement, yn print lyngba ka terminal.
04:50 Type “Talk to a Teacher” “backslash” “n”.
04:59 Backslash n “\n” ka pyni ia ka lain bathymmai.
05:03 Ha ka ba kut, hadien ba execute ia ka “printf” function, u cursor un leit sha ka lain bathymmai.
05:10 Man ba don ka “C” statement dei ban kut da u “semicolon” “;”.
05:15 Namar kata, type ia ka haduh bakut jong u lain.
05:19 'Semicolon” ka leh kum ka statement terminator.
05:24 Mynta nion “Enter” ai space laisien hangne.
05:27 Bad type “return” “space” “0” bad u “semicolon”
05:34 Kane ka statement kan pynphai ia ka integer zero.
05:38 Ia ka integer la hap ban pynphai na ka bynta ka function namar ka function type ka dei “int”.
05:45 Ka “return” statement ka buh ia ka jingkut jong ka executable statements.
05:51 Ngin pule shuh shuh shaphang ka returned values ha kawei pat ka jinghikai.
05:55 Mynta click “Save” button ban save ia ka phail.
06:00 Kan long kaba bha lada save ia ka phail bunsien.
06:03 Kane kan iada ia phi na ka jingduh jong ka bor ding.
06:05 Kan long ruh ka jing myntoi ba lada ki applications kin duh.
06:10 To ngin compile ia ka program mynta, ngin phai biang sha ka terminal.
06:15 Type “gcc” space “talk.c” space hyphen “-o” space “myoutput”,
06:24 “gcc” ka dei ka compiler,
06:27 ' “talk.c” ka dei ka kyrteng jong ka phail jong ngi.
06:30 “-o” “myoutput” ka ong ba ka executable kan dei ban leit sha ka phail “myoutput”.
06:37 Mynta nion “Enter”.
06:39 Ngin iohi ba ka program la compiled.
06:42 Da kaba type “ls space (hypen) –lrt”, ngi lah ban iohi ba ka “myoutput” ka dei ka phail ba khatduh ban shna.
06:54 Ban execute ia ka program, type (dot slash) “./myoutput”, nion “Enter”.
07:01 Hangne ka output kan sa pyni kum “Talk to a Teacher”.
07:06 Kumba nga lah ong mynshuwa, return ka dei ka statement ba khatduh ban execute.
07:10 Kumta, hadien ka return statement ym don shuh ban execute. To ngin pyrshang ban leh ia ka.
07:15 To ngin phai biang sha ka program jong ngi.
07:17 Hadien jong ka “return” statement, to ngin kynthup sa kawei pat ka “printf”
07:22 Hangne ai space, type printf opening bracket, closing bracket.
07:27 Hapoh ki bracket hapoh ki double quotes type Welcome backslash n, ha kaba kut type u semicolon.
07:35 Mynta click save.
07:37 To ngin compile bad execute phai biang sha ka terminal jong ngi.
07:41 Phi lah ban leit biang sha kaba lah dep enter ia ki command da kaba pyndonkam u “up arrow” key.
07:46 Dei kumne kumba nga lah leh myntan.
07:51 Ngin iohi ba ka statement ba ar “welcome”ka khlem execute.
07:58 Mynta wan phai biang sha ka program jong ngi.
08:00 To ngin thoh ia ka “Welcome” statement halor jong ka return statement.
08:06 Click “Save”.
08:09 To ngin compile bad execute.
08:15 Ngin iohi ba ka ba ar jong ka “printf” statement “welcome”lah dep ruh ban execute.
08:23 Mynta to ngin peit ia ki common errors ba ngi shait lap. To ngin phai biang sha ka program jong ngi.
08:29 Tharai hangne ngan pynjah tang i dot ha ka “stdio.h”, click “Save.”
08:36 To ngin compile bad execute.
08:41 Ngin iohi ba, Kan pyni ia ka error ha ka lain ka ba 2 jong ka “talk.c” phail jong ngi.
08:48 Ka compiler kam lah ban wad ia ka “header file” jong ka kyrteng “stdioh”. Na kata ka daw ka pyni ia ka error “no such file or directory”.
08:59 Bad ka compilation la terminate.
09:03 To ngin pynbeit mynta ia ka error phai biang sha ka program. Thep biang ia u dot “.”, click save.
09:11 To ngin compile bad execute. Hoid, ka la treikam.
09:19 Ngan pyni iaphi sa kawei pat ka common error.
09:22 To ngin leit biang sha ka program.
09:25 Mynta, tharai hangne nga klet ban buh “semicolon” ha kaba kut jong u lain.
09:31 Click “Save”. To ngin compile bad execute.
09:41 Ngi iohi ha ka don error ha ka lain ba 6 jong ka talk.c phail jong ngi. Ba dei ban don u “;” (semicolon) ha shwa jong ka “printf”.
09:51 Phai biang sha ka program jong ngi.
09:54 Kumba nga lah ong mynshwa, semicolon ka leh kum ka statement terminator.
09:58 Te kan wad ia ka ha kaba kut jong ka lain ba 5 bad ha kaba sdang jong ka lain ba 6.
10:06 Kane ka dei ka lain ba 6.
10:09 Kane ka dei la jaka ba khatduh ha kaba phi lah ban buh ia u “semicolon”.
10:12 Kynmaw ba ka compiler ruh ka ai ia ka error message ha ka lain ba 6
10:18 To ngin pyrshang kan jia aiu lada ngi buh ia u semicolon hangne.
10:23 Click “save”.
10:26 To ngin compile bad execute.
10:30 Hoid, mynta ka la treikam.
10:32 Mynta ngin phai biang sha ka program jong ngi. To ngin type u “semicolon” hangne ha kaba kut jong u lain
10:40 Ha kaba la iakut ban type u “semicolon” ha kaba khatduh jong u lain.
10:46 Mynta click “Save”.
10:49 To ngin compile bad execute. Hoid ka la treikam.
10:54 Mynta to ngin phai biang sha ki slides jong ngi.
10:57 Da ka assigment
10:59 Thoh ka program ban print “Welcome to the world of C”
11:02 Peit jia aiu lada u “\n”yn ym kynthup ha ka “printf” statement.
11:08 Da kane ngi la poi sha ka bakut jong ka jinghikai.
11:12 Peit ia ka video ba la ai ha ryngkat ka link ha trai.
11:15 KA batai lyngkot ia ka Spoken Tutorial Project.
11:18 Lada phim don ka bor internet ba khlain, shu download sa peit pat hadien.
11:22 Ka Spoken Tutorial Project Team
11:24 ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials.
11:28 Yn ai syrnod ia kiba pass ia ka online test.
11:31 Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka "contact@spoken-tutorial.org
11:38 Spoken Tutorial” Project ka dei ka bynta jong ka Talk to a Teacher.
11:42 La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India.
11:47 Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum : http://spoken-tutorial.org\NMEICT-Intro.
11:51 La pynkylla sha ka ktien khasi da i Godwin pyrbot. Khublei naka bynta ba iasnohlang

Contributors and Content Editors

John123, PoojaMoolya, Winz