C-and-Cpp/C4/Understanding-Pointers/Khasi
From Script | Spoken-Tutorial
Time | Narration |
00:01 | Ngi pdiang sngewbha iaphi sha ka spoken tutorial halor ka Pointers in C and C++ . |
00:06 | Ha kane ka jinghikai, ngin pule shaphang: |
00:08 | Pointers |
00:10 | Ban shna Pointers |
00:12 | Bad ban operate halor u Pointers. |
00:14 | Ngin leh ia kane lyngba ka jingiarap ki nuksa. |
00:18 | Ban record ia ka jinghikai, Nga pyndondam da Ubuntu operating system version 11.10, |
00:25 | gcc and g++ compiler version 4.6.1 on Ubuntu. |
00:31 | To ngin sdang da ka jing lamphrang shaphang u. |
00:34 | Pointers ka pyni ia ka jaka hapoh ka memory. |
00.38 | Pointers ka buh ka memory address. |
00:41 | Ka ai ka value ba buh ha kane ka address. |
00:45 | Mynta, to ngin peit ia ki nuksa jong u pointers. |
00:48 | Kynmaw ba ka kyrteng ka phail jongngi ka long pointers_demo.c. |
00:54 | To ngin iaid lyngba u code mynta. |
00:56 | kane ka dei ka header phail jongngi kum stdio.h. |
01:00 | Kane ka dei ka main() function jong ngi. |
01:03 | Hangne ngi don long integer num, assigned value 10. |
01:09 | Nangta ngi lah declared ia u pointer ptr. |
01:12 | Asterisk sign la pyndonkam ha kaba declare ia u pointer. |
01:16 | Une u pointer u lah ban pyni ban type long int. |
01:20 | Ha ka 'printf' statement, ampersand la pyndonkam ban retrieve ia ka memory address jong ka variable. |
01:28 | Nangta, ampersand num (&num) yn ai ia ka memory address jong num. |
01:33 | Ka statement kan print ia ka address jong u variable num. |
01:37 | Hangne, ptr ka buh ia ka address jong u num. |
01:41 | Ka statement kan print ia ka address jong ptr. |
01:45 | sizeof() function kan ai ia ka size jong ptr. |
01:49 | Kane kan ai ia ka value jong ptr. |
01:51 | Kato ka dei ka memory address jong u num. |
01:54 | Bad hangne asterisk ptr kan ai ia ka value ha ka address. |
01:59 | Nangta, pyndonkam ia u asterisk kan ym ai ia ka memory address. |
02:03 | Hynrei ka ai ia ka value. |
02:06 | %ld ka long ka format specifier na ka bynta ka long int. |
02:10 | Mynta, to ngin execute ia ka program. |
02:13 | Plie ia ka terminal window da kaba nion Ctrl, Alt and T keys ha kajuh ka por na ka keyboard jong phi. |
02:21 | Ban compile, type gcc space pointers underscore demo dot c space hyphen o space point |
02:32 | Nion Enter. |
02:34 | Type dot slash point. Nion Enter. |
02:39 | Ka output la pyni. |
02:42 | Ngi iohi ba ka num address bad ptr value ki dei ki juh |
02:48 | Katba ka memory address jong num bad ptr ki iapher. |
02:53 | Nangta ka size jong u pointer ka long 8 bytes. |
02:57 | Bad ruh ka value ba pyini da ptr kalong 10 ha kaba la assigned ia u num. |
03:03 | Mynta to ngin peit ia ka juh ka program ha ka C++. |
03:07 | Kynmaw ba ka kyrteng ka phail jong ngi kalong pointer underscore demo.cpp. |
03:13 | Hangne ngi don katto katne ki jingkylla kum ka header phail kum iostream. |
03:19 | Nangta ngin pyndonkam da ka std namespace. |
03:23 | Bad hangne ngi don ka cout function ha ka jaka jong ka printf() function. |
03:28 | Kiwei pat kin ia syriem. |
03:30 | To ngin execute ia ka program. Phai biang sha ka terminal jong ngi. |
03:34 | Ban compile, type g++ space pointers_demo.cpp space hyphen o space point1, nion Enter. |
03:50 | Type dot slash point1, nion Enter. |
03:55 | Ngi lah ban iohi ba ka output ka iasyriem ia ka C program jong ngi. |
04:00 | Da kane ngi la poi sha kaba kut jong ka jing hikai. |
04:03 | Phai biang sha ka slide jong ngi. |
04:05 | To ngan batai lyngkot. Ha kane ka jinghikai, ngi pule: |
04:08 | Shaphang u pointer. |
04:10 | Ban shna ia u pointer. |
04:12 | Bad bad ban operate ia u pointer. |
04:14 | Kum ka assignment, thoh ia ka C bad C++ program |
04:18 | bad ban declare ia u variable bad pointer. |
04:21 | Buh iaka address jong u variable ha u pointer. |
04:24 | Bad print ia ka value jong u pointer. |
04:27 | Peit ia ka video ba la ai ha ryngkat ka link ha trai.
. |
04:30 | Ka batai lyngkot ia ka Spoken Tutorial Project. |
04:33 | Lada phim don ka bor internet ba khlain, shu download sa peit pat hadien. |
04:37 | Ka Spoken Tutorial Project Team: |
04:39 | Ka pynlong ki workshop da ba pyndonkam ia ki spoken tutorials. |
04:43 | Yn ai syrnod ia kiba pass ia ka online test. |
04:47 | Na bynta ka jingtip ba kham bniah, sngewbha thoh sha ka
'contact@spoken-tutorial.org |
04:53 | Spoken Tutorial” Project ka dei ka bynta jong ka Talk to a Teacher. |
04:58 | La kyrshan ia kane ka project da ka National Mission on Education lyngba ICT, MHRD, jong ka sorkar India. |
05:06 | Shuh shuh ki jingtip halor kane ka mission phin ioh na kane ka link ba la ai harum : |
05:10 | La pynkylla sha ka ktien khasi da i Godwin pyrbot |
05:14 | Khublei naka bynta ba iasnohlang. |