Advance-C/C2/Command-line-arguments-in-C/Khasi

From Script | Spoken-Tutorial
Revision as of 16:11, 28 December 2016 by Winz (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time
Narration
00:01 Khublei bad ngi Pdiang sngewbha IA PHI SHA KA “Spoken tutorial” halor KA “Command Line Arguments”
00:07 Ha kane ka jinghikai, ngin ia pule Shaphang rukom treikam jong ki “(main)” bad ki “ARGUMENT” ryngkat ki nuksa
00:15 Ha kane ka jinghikai nga Pyndonkam da ka “Ubuntu Operating system” version 11.10 bad gcc Compiler version 4.6.1 jong ka Ubuntu.
00:27 Ban sngewthuh ia kane ka jinghikai, phi hap ban nang ia ka Jinghikai“C”
00:33 Lada ym dei, ia ka jinghikai na syriem, sngwebha ban leit sha ka website kumba la pyni
00:39 To ngin sdang ia ka prokram jong ngi. Nga don ka code phail. Ngan plie ia ka.
00:45 Ka KYRTENG ka phail KA DEI “main hyphen bad hyphen args.c”
00:50 To Ngan batai ia ka prokram.
00:53 Kine ki dei ki “Header”(Khlieh) phail. “stdio.h” ka batai ia “core input”bad “output”functions (jingtreikam).
01:01 stdlib.h header file KA BATAI IA-
  • KA jingtreikam ban PYNKYLLA sha ki nombar
  • KI NUMBER BA LYMBRUM JONG KA Pseudo
  • KA JINGTREIKAM BAN PYNMIH
  • KA JINGBUH JAKA HA KA MEMORY
  • BAN PYNTREIKAM IA KI CONTROL.
01:16 int argc, char asterisk asterisk argv (**argv).
Kane ka dei ka “main ()” function. Hapoh jongka, ngi la ai artylli ki arguments-
01:28 “argc” ka batai ia ka number jong KA “command line arguments” ba ai sha ka prokram.
01:34 Kane kynthup ia ka kyrteng bashisha jong ka prokram.
01:38 “argv”ka don ia ka “argument” bashisha ba sdang na ka “index 0”
01:44 ' “Index 0” ka dei ka kyrteng jong ka prokram.
01:48 ' “Index 1” kan dei ka ba nyngkong ka “argument” ba ai sha ka prokram.
01:53 ' “Index 2”kan dei ka ba ar ka “argument” ba ai sha ka prokram bad ter ter.
01:59 Kane ka jingiathuh kan pyni ia ki number ba kyllum jong ki“arguments”ba la ai sha ka prokram.
02:05 Kane kan pyni ia ka argument ba nyngkong ba la ai sha ka prokram.
02:09 “1” u ieng naka bynta ka “argument” ha ka “index 1”.
02:13 ' “While” “Condition” kan pynduna ia ka number jong ka nia-sot (arguments).
02:18 Kane ka jingiathuh kan pynmih lane print ia baroh ki arguments (Nia-sot) kaba ai sha ka prokram.
02:23 Ha ba kut, ngi ioh ia ka jingiathuh return 0 ‘’’
02:27 To ngin plie ia ka “ terminal” da ba ňion “ctrl+alt” bad “T”ha ka juh ka por na ka keyboard
02:35 Type: gcc space main hyphen bad hyphen args.c space hyphen o space args. ňion Enter.
02:49 Type: dot slash args. ňion Enter
02:54 Phin iohi ia ka jingmih kumne:

"Total number of arguments are 1"

"The first argument is null"
"arguments are ./args" 
03:06 'Command line arguments la ai ha ka por ba pyndep.
03:11 'Total number of arguments are 1 katba ka zeroth argument ka dei ka kyrteng jong ka phail dalade ba lah ban execute.
03:19 'The first argument is null namar ba ngi khlem pat ioh ai ia kano kano ka argument sha ka prokram.
03:26 'Argument ka dei tang kawei, kata ka dei dot slash args
03:31 To mynta ngin ia execute (pyndep) sa shisien
03:34 Ňion ia u up-arrow key space(jaka suda) type: Sunday space Monday space Tuesday. Ňion Enter.
03:47 Mynta ngin iohi ia ka jingmih:

Total number of arguments are 4 The first argument is Sunday “’Ki Argument ki dei ./args Sunday Monday bad Tuesday .

04:04 To ngan batai ia ka jingmih.
04:06 Baroh ki arguments ki don 4 tylli./args, Sunday, Monday bad Tuesday.
04:14 Ka argument ba nyngkong ka dei “Sunday”
04:17 Ka zeroth argument barabor ka ai ia ka kyrteng ka phail ba lah ban execute
04:22 "Sunday" la buh ha ka argument ba nyngkong.
04:25 "Monday" la buh ha ka argument ba ar
04:28 "Tuesday" la buh ha ka argument ba lai
04:31 Mynta ngi la poi sha ba kut jong kane ka jinghikai. To ngin ia batai lyngkot
04:37 Ha kane ka jinghikai, ngi la nang ia ki:
  • Command line arguments
  • argc
  • argv.
04:45 Kum ka jingaibynta, execute lane pyndep ia ka prokram da kiwei ki argument (nia-sot)s.
04:51 Peit ia ka video ba lah ban ioh naka link ba la pyni harum.
04:54 Ka batai lyngkot ia ka spoken tutorial project.
04:57 Lada phim don ka bor internet ba khlain, phi lah ban shu download sa peit pat hadien.
05:02 Ka team Spoken Tutorial Project:* ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials.
05:08 * Yn ai syrnod ia kiba pass ia ka online test. Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka

contact@spoken-tutorial.org

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

Khublei naka bynta ba iasnohlang}

Contributors and Content Editors

Meboreen Mary, Pratik kamble, Winz