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

From Script | Spoken-Tutorial
Revision as of 10:41, 1 June 2017 by PoojaMoolya (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:02 Ngi pdiang sngewbha ia phi sha ka “Spoken Tutorial” jong ka “First C++ program.
00:07 Ha kane ka jinghikai ngan batai shaphang,
00:10 Kumno ban thoh ia ka C++ program
00:13 Kumno ban compile ia ka, Kumno ban execute ia ka
00:17 Ngin hap batai ruh shaphang katto katne ki jingbakla bad ki solutions.
00:22 Ban record ia ka jinghikai, Ngan pyndonkam da ka Ubuntu operating system version 11.10 bad
00:29 G++ Compiler version 4.5.2 jong Ubuntu.
00:35 Ban practice ia ka ne ka jinghikai,
00:37 Phi dei ban nang ia ka Ubuntu Operating system bad ka Editor.
00:44 Katto katne ki editors ki long “vim” bad “gedit”.
00:48 Ngan pyndonkam da “gedit” ha kane ka jinghikai.
00:50 Ia ka jingtip ba kham bniah halor ka jinghikai sngewbha leit sha ka website kumba la pyni harum.
00:56 To ngan batai iaphi kumno ban thoh ia ka C++ program lyngba ka nuksa.
01:01 Plie ia ka terminal window da kaba press “Ctrl, Alt bad T”keys ha kajuh ka por na ka keyboard.
01:09 Mynta to ngin plie ia ka text editor. Type hajrong ka terminal.
01:13 “gedit” space “talk” dot “.cpp” space ampersand “&” sign.
01:21 Ngi pyndonkam u “&” ban ban pyllait ia ka prompt.
01:25 Kynmaw ba baroh ki C++ phail kin don ka extension “.cpp”.
01:31 Mynta Nion “Enter”,
01:33 Ka text editor kan plie.
01:35 To ngin sdang ban thoh ia ka program.
01:38 Type double slash “//” space “My first C++ program”.
01:44 Hangne, u double slash la pyndonkam ha kaba batai ia ka lain.
01:49 Ia ka jingbatai la pyndonkam ban sngewthuh ia ka jing iaid ka program.
01:52 Ka long ka ba myntoi naka bynta ka documentation.
01:55 Ka ai iangi ka jingtip shaphang ka program.
01:59 U double slash la khot u single line comment. Mynta nion Enter.
02:05 Type (hash) “#include”, space, opening angle bracket, closing angle bracket.
02:13 Ka long ka ba bha ban pyrshang ban pyndep ia ki bracket shuwa, bad sa sdang ban thoh hapoh jong ki.
02:20 Mynta hapoh ki bracket, type “iostream”.
02:23 Hangne “iostream” ka dei ka “header file”.
02:26 Kane ka phail ka kynthup ia ka declaration jong ka standard input output functions hapoh ka “C++.”Mynta nion “Enter”.
02:35 Type “using” space “namespace” space “std” bad u semicolon “;”
02:45 Ka “using” statement ka iathuh ha ka compiler ba phi kwah ban pyndonkam u “std namespace”.
02:52 Ka jingmut jong “namespace” ka long ban kiar na ka jingiatyngkhuh ki kyrteng.
02:56 La pyndep da ka ba buh shijak ia ki kyrteng jong ki identifiers.
03:00 Kan shna ia ka declarative region bad batai ia ka jingthmu.
03:05 Kano kano kaba batai hapoh ka “namespace” kan dei ha ka jingthmu jong ka namespace.
03:11 Hangne “std” kadei ka “namespace” ha kaba baroh ki standard C++ library ba declared. Mynta nion “Enter”.
03:20 Type “int” space “main” opening bracket, closing bracket.
03:26 “main” ka dei ka “function” ba kyrpang.
03:30 Ka pyni ba ka execution jong ka program ka sdang na une u lain.
03:34 Ka jingplie bad khang ia ki bracket la khot “Parenthesis”.
03:39 Parenthesis ka bud sa ka “main” ka batai ia ka user ba ka “main” ka dei ka “function”.
03:45 Hangne, ka “int” “main()” function kam shim ia ka “arguments” bad returns ia u value jong u jait integer.
03:52 Ngin pule shaphang ki data types ha kawei pat ka jinghikai.
03:56 Mynta ngin phai pat sha ki slides ban tip shuh shuh shaphang ka main function.
04:02 Man la ki “program” dei ban don kawei ka main function.
04:04 Yn ym dei ban don palat ia ka wei ka “main” function.
04:09 Lym kumta ka compiler kam lah ban wad ia ka jingsdang jong ka program.
04:13 Ka jingthylli jong ka parentheses ka pyni ba ka main kamdon “arguments”.
04:19 Ia Ka jingmut jong ka “arguments”yn sa batai ha kawei pat ka jinghikai.
04:24 Mynta to ngin phai sha ka program jongngi. Nion Enter.
04:29 Type opening curly bracket “{“.
04:32 Ka opening curly bracket ka pyni ia ka jingsdang jong ka function “main()”.
04:37 Nangta type u closing curly bracket “}”.
04:40 Ka closing bracket ka pyni ia ka jingkut jong ka function “main()”.
04:45 Mynta, hapoh ki bracket nion enter arsien.
04:49 Pyniaid ia u cursor shi lain shajrong.
04:51 Indentation ka pynlong ia u code ban suk ban pule.
04:54 Ka iarap ruh ban wad kham kloi ia ki jingbakla
04:58 To ngin ai space hangne.
05:01 Bad type “cout” “space two opening angle bracket”.
05:07 Hangne “cout” ka dei ka standard “C++ function” ban print ia ka output jong ka terminal.
05:14 Mynta hadien ki bracket, type hapoh ki double quotes.
05:18 Kano kano kaba hapoh jong ki double quotes, ha ka “cout” functions, yn print.
05:24 Mynta hapoh ka quote type “Talk to a teacher backslash n” (\n).
05:31 Hangne “\n” ka pyni ia ka lain bathymmai.
05:35 Ka jingmih kalong, hadien ka execution jong ka “cout” function, u cursor un iaid sha ka lain bathymmai.
05:41 Manla ka C++statement dei ban kut da kabuh u “semicolon”.
05:45 Nangta type ia ka ha kaba khatduh jong une u lain.
05:48 U semicolon u act kum ka statement terminator. Mynta nion “Enter.”
05:53 Ai space hangne bad type “return” “space” “0” bad u semicolon “;” “.”
06:00 Kane ka statement ka pynphai pat ia ka integer zero.
06:03 U integer un hap phai na ka bynta kane ka “function” namar ka “function” type ka dei “int”.
06:10 Ka “return” statement ka dei ka dak jong ka jingkut jong ka executable statements.
06:14 Ngin pule kham bun shaphang ka returned values ha kawei pat ka jinghikai.
06:20 Mynta click “Save” button ban save ia phail.
06:23 Kalong kaba bha ban save ia ki phail man ka por.
06:26 Kane kan iada ia phi na ka jing duh ka bor ding.
06:30 Kan long ruh ka jingmyntoi ba ioh ki applications kin lah ban duh.
06:34 To ngin compile ia ka program mynta.
06:36 Ngin phai biang sha ka terminal jongngi.
06:39 Type “g++” space “talk.cpp” space hyphen “-o” space “output”.
06:49 Hangne “g++” ka dei ka compiler kaba shait compile ia ka“C++” programs.
06:55 “talk.cpp” ka dei ka kyrteng jong ka phail jongngi.
06:59 “hyphen-o output” ka ong ba ka executable ka dei ban leit sha ka phail “output”.
07:05 Mynta nion “Enter”.
07:07 Ngin iohi ba ia ka program la compiled.
07:10 Da kaba type “ls space hyphen lrt”, ngin iohi ba ka “output” ka long ka phail ba khatduh ban shna.
07:19 To ngin execute ka program, type “./output” (dot slash output).
07:24 Bad nion “Enter”.
07:27 Hangne ka output yn pyni kum “Talk to a teacher”.
07:30 Mynta to ngin peit ia ki common errors ba ngi shait lap.
07:35 Switch biang sha ka text editor jong ngi.
07:38 Tharai hangne ngi klet u “}” (closing curly bracket)
07:42 Mynta save ia ka phail.
07:44 To ngin execute. Phai biang sha ka terminal jongngi.
07:48 Mynta compile bad run ia ka program da ka ba pyndonkam ki command ba ngi lah leh mynshuwa. Ngin iohi ia ka error.
07:55 Ngi iohi ba ka don ka error ha ka lain no.7 ha ka “talk.cpp” phail jong ngi ba pyni kumne “expected curly bracket at the end of input”.
08:07 Mynta phai biang sha ka text editor jong ngi.
08:09 Kumba nag lah ong mynshuwa, ka closing curly bracket ka buh ia ka jing kut jong ka function main.
08:14 Namarkata pyrshang thep biang u bracket hangne. Mynta save ia ka phail.
08:19 To ngin execute sa shisien ia ka.
08:21 Phi lah ban recall biang ia ki command ba lah dep enter da kaba pyndonkam u up arrow key.
08:26 Dei Kumne kumba nga lah leh mynta.
08:30 Hoid, ka la treikam.
08:32 Ngan pyni ia phi sa kawei pat ka common error.
08:35 To ngin switch biang sha ka text editor jong ngi.
08:37 Mynta, tharai hangne ngin klet ban buh “std.”
08:41 To ngin save ia ka phail.
08:44 Phai biang sha ka terminal jong ngi.
08:46 To ngin compile.
08:48 Ngin iohi ba ka don error ha ka lain no.3 bad lain no.6 ha ka “talk.cpp”phail jongngi.
08:56 Ka long “expected identifier before ‘semicolon’”and” ‘cout’ was not declared in this scope”.
09:05 Ka “cout” ka dei ka standard “C++ library function”.
09:09 Bad baroh ka “C++ library function”ka batai hapoh ka “std namespace”.
09:15 Namarkata ka ai ia ka error.
09:18 To ngin pynbeit ia ka error. Phai biang sha ka text editor jong ngi. Type “std” hangne.
09:23 To ngin save ia ka.
09:25 To ngin compile biang ia ka.
09:29 Hoid, ka la treikam.
09:32 Kum ka assignment, Thoh ia ka program ban print ia ka kyrteng jong phi bad ka city.
09:37 Ngin pyndonkam ka “single lain comment” ha kane ka jinghikai.
09:40 Mynta pyrshang ban ai ka “multiline comment”.
09:44 Peit ia ka video ba la ai ha ryngkat ka link ha trai.
09:46 Ka batai lyngkot ia ka Spoken Tutorial Project.
09:48 Lada phim don ka bor internet ba khlain, shu download sa peit pat hadien.
09:53 Ka Spoken Tutorial Project Team
09:55 ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials.
09:58 Yn ai syrnod ia kiba pass ia ka online test.
10:01 Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka contact@spoken-tutorial.org
10:10 Spoken Tutorial” Project ka dei ka bynta jong ka Talk to a Teacher.
10:14 La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India.
10:20 Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum :
10:25 La pynkylla sha ka ktien khasi da i Godwin pyrbot
10:28 Khublei naka bynta ba iasnohlang

Contributors and Content Editors

PoojaMoolya, Winz