hatakekksheeshh's picture
Upload folder using huggingface_hub
7ec75e2 verified
{
"course": "Programming_Fundamentals",
"course_id": "CO1027",
"schema_version": "material.v1",
"slides": [
{
"page_index": 0,
"chapter_num": 0,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_001.png",
"page_index": 0,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:22:44+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [CO1027] - Fundamentals of C++ Programming Phuoc Hung Pham Lecturer: Duc Dung Nguyen Introduction Credits: 3"
},
{
"page_index": 1,
"chapter_num": 0,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_002.png",
"page_index": 1,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:22:53+07:00"
},
"raw_text": "oriented programming. Prerequisite: basic math knowledge Requirement: Class attendance Self-study Work hard 2"
},
{
"page_index": 2,
"chapter_num": 0,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_003.png",
"page_index": 2,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:23:02+07:00"
},
"raw_text": "outcome Be able to describe the algorithm for your problem Be able to implement a given algorithm using C++ Understand basic concepts of Object-Oriented Programming (OOP) Improve your coding style 3"
},
{
"page_index": 3,
"chapter_num": 0,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_004.png",
"page_index": 3,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:23:10+07:00"
},
"raw_text": "Basic of programming language (C++) Control structures Array and structure Pointer Recursive Class Inherirance, template, polymophism, and advanced topics 4"
},
{
"page_index": 4,
"chapter_num": 0,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_005.png",
"page_index": 4,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:23:19+07:00"
},
"raw_text": "Syllabus Course meeting time: Lecture: 3 hours/week for 8 weeks Laboratory: 2 hours/week for 9 weeks Course mechanics: How to program Textbook: C++ Reference book: Fundamentals of C++ Programming - Richard L. Halterman Lecture notes Online materials 5"
},
{
"page_index": 5,
"chapter_num": 0,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_006.png",
"page_index": 5,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:23:28+07:00"
},
"raw_text": "Sy llabus Assessment Assignment Lab test Final exam: 90' Ratio: lab (10%), test (20%), assignment (30%), final exam (40%) (This is a tentative ratio, it may change a bit) Coding environment: Recommend: Visual studio Other IDEs are welcome"
},
{
"page_index": 6,
"chapter_num": 0,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_0/slide_007.png",
"page_index": 6,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:23:36+07:00"
},
"raw_text": "Any plagiarism act will lead to zero in all tests! Final grade of assignment depends on the exam 1 Detail mapping of exam questions and assignments will be announced during the 1"
},
{
"page_index": 7,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_001.png",
"page_index": 7,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:23:45+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [CO1027] - Fundamentals of C++ Programming Phuoc Hung Pham Lecturer: Introduction to Duc Dung Nguyen Credits: 3"
},
{
"page_index": 8,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_002.png",
"page_index": 8,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:23:53+07:00"
},
"raw_text": "Today S Hardware vs. Software Programming language Problem solving and software development Algorithm Discussion 2"
},
{
"page_index": 9,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_003.png",
"page_index": 9,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:24:08+07:00"
},
"raw_text": "Hardware Hardware: physical components of computer (including peripherals) * 4 9 -Backapace 3 00 Q W E T Y U 0 lab O P A S D G H K Caps Lock Ento Microsoft INTEX M Shif Office Linux x 0 P W 3"
},
{
"page_index": 10,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_004.png",
"page_index": 10,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:24:18+07:00"
},
"raw_text": "Architecture puter Computer architecture/model Output Devices System How computer runs Unit von Neumann Harvard ..InputDevices Mass Storage Device 4"
},
{
"page_index": 11,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_005.png",
"page_index": 11,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:24:29+07:00"
},
"raw_text": "rchitecture N Al eunmann yon Created by scientist John von Neumann in 1945 Uses on today's most computers John von Neuman (1903 - 1957) American-Hungarian mathematician Source: Wikipedia Personal computer Mainframe"
},
{
"page_index": 12,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_006.png",
"page_index": 12,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:24:37+07:00"
},
"raw_text": "N rchitecture Ar eumann von Processor Arithmetic Logic Unit Control Unit CU ALU Input Memory Output 6"
},
{
"page_index": 13,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_007.png",
"page_index": 13,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:24:48+07:00"
},
"raw_text": "N eumann von 1) Input A W U 0 D zeblon X C B 0 keyboard mouse 2) Memory RAM 7"
},
{
"page_index": 14,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_008.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_008.png",
"page_index": 14,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:24:57+07:00"
},
"raw_text": "N cont eumann von 3) Pi rocessor a) Control Unit Process Manage the process Memory b) Arithmetic Logic Unit - Perform mathematics functions Addition, subtraction, multiplication, division, etc 8"
},
{
"page_index": 15,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_009.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_009.png",
"page_index": 15,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:25:08+07:00"
},
"raw_text": "N cont eumann von 4) Output O PE NE X S amazon hp O 7,068.71 O tripadviso Ask me anything DELL printer monitor 9"
},
{
"page_index": 16,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_010.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_010.png",
"page_index": 16,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:39:01+07:00"
},
"raw_text": "E le xam Processor CU ALU Addition 2018 W R U A H zeblon X C B N Memory +18 2000"
},
{
"page_index": 17,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_011.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_011.png",
"page_index": 17,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:39:13+07:00"
},
"raw_text": ""
},
{
"page_index": 18,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_012.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_012.png",
"page_index": 18,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:39:37+07:00"
},
"raw_text": "Software processor to perform specific tasks. [Wikipedia] Apps Games Websites Gi A VN E XPRESS HUCOREMYLZGHE 2.190 VICTRAE 0/102012-0/102012 .Tangktm oing.rignh C01238080173010.0129233S55750 000 D49010 Adobe 'M3tthan'tren bien Caktywtllayay sie Dong. Office 365 oym1 xaytrennensanhd.olndbunyuvo Tg Oichydan mytocshingchcmat.nhing inD6o1gn caocelruocnendubn r.oocdanngiscongchph woag.chalungcosnleotnthe Npya Thi Loan quanvi chelhn CicaonanoiTieinas Bogphnenm laceanlMs Twettsba4noro S trogBnot hom.caalp Cu HVtuyen An sng Thlanlnwe Mingio ngH WARCRAFT ClintoncXhengdugc Ua un dove thsnhpho Thjtomgxangdau cungpBlemng saunq129. canmgtnhactuong Drnyton cooatilom THRONE Software tells the CPU what to do 12"
},
{
"page_index": 19,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_013.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_013.png",
"page_index": 19,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:39:51+07:00"
},
"raw_text": "0 system User how software CPU Application Software RAM Os Operating System Hardware source: Wikipedia"
},
{
"page_index": 20,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_014.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_014.png",
"page_index": 20,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T17:39:58+07:00"
},
"raw_text": "P an g ge ua"
},
{
"page_index": 21,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_015.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_015.png",
"page_index": 21,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:12:23+07:00"
},
"raw_text": "an class LintRunner(object): Eint PointSet::inTri(int p1Idx, int p2Idx, int p3Idx, int pIdx) { Base class provides common functionality to run python code checkers. // Check if a triangle is degenerate or not int s4 = testLeftTurn(p1Idx, p2Idx, p3Idx); sane_default_ignore_codes = set([] if (s4 == 0) command = None return 0; // Degenerate. Actually this is not a triangle output matcher = None int s1 = testLeftTurn(p1Idx, p2Idx, pIdx); custom ignore codes = None # flymake: (\"(.* at ([ n]+ line ([0-9]+)[,.n]\" 2 3 nil 1) int s2 = testLeftTurn(p2Idx, p3Idx, pIdx); # or in non-retardate: r'(.* at ([ n] line ([e-9])[,.n]' int s3 = testLeftTurn(p3Idx, p1Idx, pIdx); output_format = (\"%(level)s %(tool)s/%(error_type)s%(error_number)s:\" \"%(description)s at %(filename)s line %(line_number)s.\") if((s1 == 0 && s2 == 0) 11 (s1 == 0 && s3 == 0) 11 (s2 == 0 && s3 == 0)) def init (self, config): return 1; // This point is on one of the vertices of the triangle self.config = config else if(s1 == 0) {// This point is on the straight line 12 if self.config.VIRTUALENV: if(s2 == s3) # This is the least we can get away with (hopefully) self.env = { return 1; // This point is on the edge 12 'VIRTUAL_ENV': se1f.config.VIRTUALENV, else 'PATH': self.config.VIRTUALENV + '/bin:' + os.environ['PATH']] return -1; else: } self.env = {} else if(s2 == 0) {// This point is on the straight line 23 if(s1 == s3) self.env.update(self.config.ENV) return 1; // This point is on the edge 23 else @property return -1; def.operative.ignore.codes(self): ignore_codes = self.config.IGNORE_CODES } ignore_codes = set(getattr(self.config, self.custom_ignore_codes) else if(s3 == 0) {// This point is on the straightt line 31 if self.config.USE_SANE_DEFAULTS: if(s1 == s2) return ignore codes self.sane default ignore codes Python C ++"
},
{
"page_index": 22,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_016.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_016.png",
"page_index": 22,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:13:04+07:00"
},
"raw_text": "Bi inar code computer. 011000 01001011 1111001011001 0001 0010100 1011 01011 1 001101 0100100 00011001001001100011 110100001100 100 011011011011001101 00110100101 100001100011100011 0101101000011000 10001101011 00101001001110 1001010010011101 10101 010001000110 011010001 001 111000101101 101401010 00111001001100 1100100110011 11010011 11010101010 001 010101 01010111000101 11001101000010011 100 01100110001101 011000 10100 01101001011 0010100 10110101 100100 0001100100100 0001101 110100001100 100 01101101101 00110100101 10000110001110001 01011010000110001110001101011 001010010011 001001 011 0101011 010001000110 0011010001 011001 11100010110101 10011100010110101010000110 10110101010010101 100010110101010010101101100 00111001001100111011011100111001001100111011011 11 01 0011110o11 01010101011101 0011110o11 010101010 001110010101011100010100011100101010111000101 16"
},
{
"page_index": 23,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_017.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_017.png",
"page_index": 23,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:13:10+07:00"
},
"raw_text": "P Tools for development 17"
},
{
"page_index": 24,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_018.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_018.png",
"page_index": 24,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:13:20+07:00"
},
"raw_text": "P an Enhanced Object code source code Executable Preprocessor Compiler Editor Linker program Problem solution Library declaration Libraries design of program (source code) object code 18"
},
{
"page_index": 25,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_019.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_019.png",
"page_index": 25,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:13:39+07:00"
},
"raw_text": "P an Mcrosoft Language Pascal C/AL Rust ARAP Bistro J055 Cesl Stal BTE SYMPL Gene lnom SantaTal Rapira HALAS Chaoc SISCRPT RECtL SIMPLE ALGOL DATATREHE STIACFU CEHA PL/I Ajax Apoa Clorc Object Autolt Lynx Not Mcrocada code IIEC ELAN Logo SALSAATS Assembly Arent 5 TACPOL For language McroScript Fo FP Wndow/Dos Scuirrd ht-edoscope IMP ABC T Visual Forth Newspcat -ieee Prolog CameMonkey CamlZ Delphi DASL GU Cayenn Go ECMAScnpt JASS T 5 PEARL a Eudlisp 0bject5crpt Constraht Oxygene Programming a Script PHP HLISS Ruby EXEC RPG rotaton CorVision Cyckone Acton REXX Littlo RFL NETo smula Docnwerane Common A ChucK C0oL.GrachTak Python. Tung ISWM Strand S/SLPL/5QL ORCA/Mod-2 AarcMaby Robot HaXe Effel Ltace SP/k WATFOH Coral 19"
},
{
"page_index": 26,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_020.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_020.png",
"page_index": 26,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:13:43+07:00"
},
"raw_text": "The choice of platform is critical 20"
},
{
"page_index": 27,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_021.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_021.png",
"page_index": 27,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:13:53+07:00"
},
"raw_text": "Why C/C++? 1s Let's see how to determine how much a software engineer or developer would be paid. whatto learn? salary 5120,000 backend frontend 5100,000 Thow itworks [howit looks] 580,000 $60,000 $40.000 $20,000 C C PHP Java AWS Ruby Python $S(design) Obiective source: lifehacker] 21"
},
{
"page_index": 28,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_022.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_022.png",
"page_index": 28,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:13:58+07:00"
},
"raw_text": "Why C/C++? 1s Gain high-level l programming skills Freedom, flexibility, advanced techniques, ... 22"
},
{
"page_index": 29,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_023.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_023.png",
"page_index": 29,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:14:03+07:00"
},
"raw_text": "P roblem 1g"
},
{
"page_index": 30,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_024.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_024.png",
"page_index": 30,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:14:09+07:00"
},
"raw_text": "P roblem Think about how you solved problems before your Math, Physic, Chemistry, etc. How did you solved them? Systematic Random idea Memorising solutions 24"
},
{
"page_index": 31,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_025.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_025.png",
"page_index": 31,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:14:19+07:00"
},
"raw_text": "P roblem strategies solution method Plan Act criteria known apply to new situations Define Gather Explore Check Generalize information problem constraints unknown make sense look at the evaluate Disseminate troubleshooting problem from brainstorm against different criteria Don Woods & Philip viewpoint 25 Wankat"
},
{
"page_index": 32,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_026.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_026.png",
"page_index": 32,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:14:26+07:00"
},
"raw_text": "P roblem How will Computer deals best with performing easy tasks over and over again. Principle: break the big problem into smaller pieces We utilize the computer's ability by implementing repetitive techniques to incrementally solve our complex problems. Think about a problem that you can solve using this method. 26"
},
{
"page_index": 33,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_027.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_027.png",
"page_index": 33,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:14:32+07:00"
},
"raw_text": "P roblem problem until the original problem is solved Recursive: define how to solve simplest problems. Then we break the : definition 27"
},
{
"page_index": 34,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_028.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_028.png",
"page_index": 34,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:14:41+07:00"
},
"raw_text": "Software The software development process follows the Prototyping Refine principles of problem solving. Develop Determine Objectives Test Impement Various software development models existed Demonstrate Spiral What do you need to develop a software at the Analysis Evaluation basic level? Waterfall Compiler, Debugger, Editor Requirements Integrated Development Environment (IDE) Design Planning Development Visual Studio, Eclipse, Xcode, etc. Implementation Verification Maintenance source: 28 Wikipedia"
},
{
"page_index": 35,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_029.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_029.png",
"page_index": 35,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:14:46+07:00"
},
"raw_text": "Software Address problem, collect requirements your Analyse feasible approaches, find solution Design algorithm Implement: write code Compile, debug Evaluate the program Deploy software 29"
},
{
"page_index": 36,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_030.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_030.png",
"page_index": 36,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:14:53+07:00"
},
"raw_text": "t of al S teps in Problem definition Development of a model Specification of Algorithm Designing an Algorithm Checking the correctness of Algorithm Analysis of Algorithm Implementation of Algorithm Program testing Documentation Preparation 30"
},
{
"page_index": 37,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_031.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_031.png",
"page_index": 37,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:14:59+07:00"
},
"raw_text": "Al Algorithm is a self-contained list of operations to be performed. An algorithm is an effective method that can be expressed within a finite a function. Describe algorithm Text: details of data flow and processing steps Pseudo code Flowchart 31"
},
{
"page_index": 38,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_032.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_032.png",
"page_index": 38,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:15:07+07:00"
},
"raw_text": "Al Pseudo code function randomSound() Loop: from i = 1 to 100 Independent from programming language. print number = True If i is even Then If print number Then An informal high-level description of the operating principle of Print (i + random()) a computer program or algorithm. Else PlaySound( rand( ) End If No standard for pseudo code syntax Else Print \"Odd... Algorithm is often designed with pseudo code description End If End (loop) End l (function) 32"
},
{
"page_index": 39,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_033.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_033.png",
"page_index": 39,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:15:13+07:00"
},
"raw_text": "A1 Pseudo code - guideline Mimic good code and natural language Ignore unnecessary details Don't belabour the obvious Take advantage of programming shorthands Consider context Don't lose sign of the underlying model Check for balance 33"
},
{
"page_index": 40,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_034.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_034.png",
"page_index": 40,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:15:21+07:00"
},
"raw_text": "Al Flow chart Flowgorithm 1.8.0 - Secret Number 0 x File Edit Program Tools Help A type of diagram that represents the algorithm (in Main our context). The flow chart illustrates a solution secret=random100)+1 model to a given problem. OutputPlease enter a guess between 1 and 100 A flow chart is constructed from basic shapes that have specific meanings. Input guess Two if statements are used since false\"will catchguess==secret False True guesssecret Output Your guess is too HIGH Program has finished running 34"
},
{
"page_index": 41,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_035.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_035.png",
"page_index": 41,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:15:29+07:00"
},
"raw_text": "Al Flow chart - Building blocks Flow line Decision Process On-page connector Input/Output Preparation Predefined Off-page connector Annotation process Termina source: Wikipedia 1 35"
},
{
"page_index": 42,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_036.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_036.png",
"page_index": 42,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:15:34+07:00"
},
"raw_text": "Al Flowchart Flow line: represents control pass from one symbol to another represent iterative processes. Annotation: represents comments or remarks about the flowchart. Terminal: usually has word/phrase to indicate the start/end of a process. Decision: where the decision must be made (usually Y/N) 36"
},
{
"page_index": 43,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_037.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_037.png",
"page_index": 43,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:15:40+07:00"
},
"raw_text": "Al Flowchart Input/Output: involves receiving data and displaying processed data. Predefined process: represents complex processing steps which maybe detailed in a separate flowchart. Process: shows that something is performed. Preparation: prepares a value for a subsequent conditional or decision step (replace decision symbol in case of conditional loop). 37"
},
{
"page_index": 44,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_038.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_038.png",
"page_index": 44,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:15:49+07:00"
},
"raw_text": "Al Star + Flowchart - example Input A, B INPUT A,B N B>0 Loop while B > 0 If A > B then Y A = A - B Y Else A>B A=A-B B = B - A N End End loop B=B-A Print A Print A End 38"
},
{
"page_index": 45,
"chapter_num": 1,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_039.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_1/slide_039.png",
"page_index": 45,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:15:55+07:00"
},
"raw_text": "S ummarise Understand concepts of Hardware/Software Understand problem solving process Definition of algorithm Role of algorithm in problem solving process Knowing how to describe an algorithm Understand concepts of pseudocode and flowchart 39"
},
{
"page_index": 46,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_001.png",
"page_index": 46,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:01+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [CO1027] - Fundamentals of C++ Programming Phuoc Hung Pham Lecturer: B asic Duc Dung Nguyen components Credits: 3"
},
{
"page_index": 47,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_002.png",
"page_index": 47,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:07+07:00"
},
"raw_text": "0 utcomes Be able to write simple programs Be able to explain the source code using comments Be able to format the output to the console 2"
},
{
"page_index": 48,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_003.png",
"page_index": 48,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:12+07:00"
},
"raw_text": "oday T S Variable and Data types Problem solving 3"
},
{
"page_index": 49,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_004.png",
"page_index": 49,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:16+07:00"
},
"raw_text": "P structure"
},
{
"page_index": 50,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_005.png",
"page_index": 50,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:24+07:00"
},
"raw_text": "P structure #include<iostream> preprocessor directives int main() mainO function C++!n\"; std: : cout \"welcome to << 0: return C:WINDOWSsystem32cm.. X - Welcome to C++ Press any key to continue 5"
},
{
"page_index": 51,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_006.png",
"page_index": 51,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:30+07:00"
},
"raw_text": "P structure Preprocessing directive: anything begin with # include: source inclusion (use libraries or additional code) define, undef, etc.: constant, macros pragma: specify diverse options for compiler mainO: the entry point of our 6"
},
{
"page_index": 52,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_007.png",
"page_index": 52,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:36+07:00"
},
"raw_text": "P structure Global variables definition: these variable are visible to all classes and functions in the program Structure, Class or Function definition and implementation smaller libraries. 7"
},
{
"page_index": 53,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_008.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_008.png",
"page_index": 53,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:42+07:00"
},
"raw_text": "U namespace #include<iostream> using std; namespace int main() to C++!n\"j \"Welcome cout << 0; return"
},
{
"page_index": 54,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_009.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_009.png",
"page_index": 54,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:51+07:00"
},
"raw_text": "P structure <something> #include // define data a structure // define functions // declare global variables // using namespace int main) // local variables Your code should l be put /* here TO DO */ return 0 j 2 9"
},
{
"page_index": 55,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_010.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_010.png",
"page_index": 55,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:16:57+07:00"
},
"raw_text": "U 10 ser std::cin std::cout for for reading from writing to the the console console."
},
{
"page_index": 56,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_011.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_011.png",
"page_index": 56,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:17:05+07:00"
},
"raw_text": "U 10 ser #include <iostream> using std; namespace main() int int age; \"How old you?n\"; cout << are cin l >> age; endl; iYour cout << age : << age << 0; return 2"
},
{
"page_index": 57,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_012.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_012.png",
"page_index": 57,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:17:12+07:00"
},
"raw_text": "Two types Single line comments: anything after // a = 0; // set variable a to 0 b = 1;/* set b to 1. remember that the value variable b can be changed later 12"
},
{
"page_index": 58,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_013.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_013.png",
"page_index": 58,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:17:19+07:00"
},
"raw_text": "S tyle guide the people who are paying you. A straightforward style guide is: C++ Coding Standards Google C++ Style Guideline 1 3"
},
{
"page_index": 59,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_014.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_014.png",
"page_index": 59,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:17:24+07:00"
},
"raw_text": "Simplest way: using IDE Visual Studio, Xcode, KDE IDE, Eclipse, etc. Manually: gcc, g++ gcc example.c Compile and link separately 14"
},
{
"page_index": 60,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_015.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_015.png",
"page_index": 60,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:17:29+07:00"
},
"raw_text": "V ariables l D ata and"
},
{
"page_index": 61,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_016.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_016.png",
"page_index": 61,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:17:37+07:00"
},
"raw_text": "V ariable #include <iostream> using std; namespace Memory int main() 30 age int age; 'How old you?n\"j cout << are cin >> age; iYour endl; cout << << age : age << 0; return 2 16"
},
{
"page_index": 62,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_017.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_017.png",
"page_index": 62,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:17:43+07:00"
},
"raw_text": "Primitive Data T directly by the user to declare variables. Example: int, char , float, bool etc. class in C++ or a structure. 17"
},
{
"page_index": 63,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_018.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_018.png",
"page_index": 63,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:17:50+07:00"
},
"raw_text": "uilt-in P B T rimitive ypes Type Keyword Boolean bool Character char Integer int Floating point float Double floating point double Valueless void Wide character wchar t 18"
},
{
"page_index": 64,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_019.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_019.png",
"page_index": 64,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:18:01+07:00"
},
"raw_text": "M emory slze Type Typical Size (in bytes) Typical Range char 1 -127 to 127 or 0 to 255 unsigned char 1 0 to 255 signed char 1 -127 to 127 int 4 -2147483648 t0 2147483647 unsigned int 4 0 to 4294967295 signed int 4 -2147483648 t0 2147483647 short int 2 -32768 to 32767 unsigned short int 2 0 to 65,535 signed short int 4 -32768 to 32767 long int 4 -2,147,483,648 t0 2,147,483,647 signed long int 4 same as long int unsigned long int 4 0 to 4,294,967,295 float 4 +/- 3.4e +/- 38 (7 digits) double 8 +/- 1.7e +/- 308 (15 digits) +/- 1.7e +/- 308 (15 digits) long double 8 or 12 wchar_t 2 or 4 1 wide character https://www.tutorialspoint.com/cplusplus/cpp data types.htm"
},
{
"page_index": 65,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_020.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_020.png",
"page_index": 65,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:18:20+07:00"
},
"raw_text": "C:WINDOWSsystem32c.. 0 X M C:4 emory size Size of char : 1 Size of int : 4 Size of short int : 2 Size of long #include <iostream> int : 4 Size of float : 4 using std; Size of double : 8 namespace Size of wchar t : 2 Press any key to continue int main) Size char sizeof(char) endl; << of cout << << Size int : endl; of sizeof(int) cout << << << Size int sizeof(short int) endl: << of short cout << << 1ong sizeof(long Size int : int) endl; << of cout << << Size of float sizeof(float) endl; cout << << << Size sizeof(double) of double 10 endl; cout << << << Size of sizeof(wchar_t) endl; wchar t : cout << << << 0 : return"
},
{
"page_index": 66,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_021.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_021.png",
"page_index": 66,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:18:26+07:00"
},
"raw_text": "V ariable declaration [optional] [=assigned values] int i, j float x = 0.5f; const char* c depName = \"BK-CSE\"; volatile int noOpt = 100; etc. 21"
},
{
"page_index": 67,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_022.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_022.png",
"page_index": 67,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:18:33+07:00"
},
"raw_text": "V ariable declaration Rules for variable name (identifiers, in general) A valid identifier is a sequence of one or more letters, digits, or underscore characters (_). Spaces, punctuation marks, and symbols cannot be part of an identifier. Identifiers shall always begin with a letter/ Case sensitive Reserved keywords: 22"
},
{
"page_index": 68,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_023.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_023.png",
"page_index": 68,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:18:37+07:00"
},
"raw_text": "0 format utput"
},
{
"page_index": 69,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_024.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_024.png",
"page_index": 69,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:18:46+07:00"
},
"raw_text": "format 0 utput Use escape sequences n for new line t for tab C:WINDOWSsystem32cm.. X \"Name: t Nguyen Van Ann\"j << Name : Nguyen Van cout An Age : 30 \"Age:t 30n\"j cout << Email: anvn@gmai1.com \"Email:t anvn@gmail.comn\": cout << key Press any to continue 24"
},
{
"page_index": 70,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_025.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_025.png",
"page_index": 70,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:18:57+07:00"
},
"raw_text": "t format 0 utput Use <iomanip> library (http://www.cplusplus.com/reference/iomanip/) setw( n) : set the field width n to be used on output operations. By default, setw(n) will justify everything to the right. Use left, right to adjust to the side you want <iomanip> #include left setw(6) \"Name : : \"Nguyen Ann\" cout << << << << Van left setw(8) \"Age:\" 30n\"j cout << << << << left setw(8) Email: anvn@gmail.comn\"j cout << << << << Name: Nguyen Van An Age : 30 Email: anvn@gmai1.com"
},
{
"page_index": 71,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_026.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_026.png",
"page_index": 71,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:05+07:00"
},
"raw_text": "t format 0 utput cout.width(<output w idth>) : set width of the output result, both text and number setw(<output width> cout 1 X 8 1 X setw(4) endl cout < 26"
},
{
"page_index": 72,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_027.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_027.png",
"page_index": 72,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:09+07:00"
},
"raw_text": "P roblem 1g"
},
{
"page_index": 73,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_028.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_028.png",
"page_index": 73,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:18+07:00"
},
"raw_text": "P roblem strategies solution method Plan Act criteria known apply to new situations Define Gather Explore Check Generalize information problem constraints unknown make sense look at the evaluate Disseminate troubleshooting problem from brainstorm against different criteria Don Woods & Philip viewpoint 28 Wankat"
},
{
"page_index": 74,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_029.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_029.png",
"page_index": 74,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:24+07:00"
},
"raw_text": "E polynomial equation) of the following form: +bc+ c= T Prepare: Define problem, what are criteria and constraints? Gather information, explore, plan Act: write the algorithm, implement code Check, generalize, disseminate 29"
},
{
"page_index": 75,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_030.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_030.png",
"page_index": 75,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:30+07:00"
},
"raw_text": "E Define problem: Find solution for the quadratic equation Input: constants a, b, c Output: variable x Criteria, constraints: a, b, c: integer, real, or complex numbers? x: real or complex number? 30"
},
{
"page_index": 76,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_031.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_031.png",
"page_index": 76,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:35+07:00"
},
"raw_text": "E Gather information: known: constants a, b, c unknown: variable x Explore: existed solution! Plan: input constants, check condition, compute solution 31"
},
{
"page_index": 77,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_032.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_032.png",
"page_index": 77,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:41+07:00"
},
"raw_text": "E Act: Write pseudocode and draw flowchart. Write the program Check: Is the output correct w.r.t the input? Did you test every cases? 32"
},
{
"page_index": 78,
"chapter_num": 2,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_033.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_2/slide_033.png",
"page_index": 78,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:46+07:00"
},
"raw_text": "S ummarise Understand basic elements of C/C++ Be able to read and explain the code with comments Know how to write clear code 33"
},
{
"page_index": 79,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_001.png",
"page_index": 79,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:53+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [CO1027] - Fundamentals of C++ Programming 0 and perations Phuoc Hung Pham Lecturer: Duc Dung Nguyen Libraries Credits: 3"
},
{
"page_index": 80,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_002.png",
"page_index": 80,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:19:58+07:00"
},
"raw_text": "0 utcomes How to use basic operators How to use libraries How to define macro, constants 2"
},
{
"page_index": 81,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_003.png",
"page_index": 81,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:20:03+07:00"
},
"raw_text": "oday T S Operations Libraries functions Macro definitions 3"
},
{
"page_index": 82,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_004.png",
"page_index": 82,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:20:09+07:00"
},
"raw_text": "B 0 asic perations Arithmetic operators: + ' * Bitwise operators: >> << Logic operators: ! , && 1 Assignment: = 4"
},
{
"page_index": 83,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_005.png",
"page_index": 83,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:20:15+07:00"
},
"raw_text": "Arithmetic operations Operator Operation Addition x Subtraction + Multiplication Division % Modulo 5"
},
{
"page_index": 84,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_006.png",
"page_index": 84,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:20:24+07:00"
},
"raw_text": "E le xam #include<iostream> using std; namespace int main() 16 4 endl; cout << / << endl; cout 16 << 4.0 << / % 4 << 15 endl; cout << 0; return 2"
},
{
"page_index": 85,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_007.png",
"page_index": 85,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:20:28+07:00"
},
"raw_text": "As operation"
},
{
"page_index": 86,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_008.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_008.png",
"page_index": 86,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:20:34+07:00"
},
"raw_text": " operation <left operand> = <expression> <left operand> return <left operand> can't be constant Example: pi = 3.1415; keyPressed ='q'; a=b=5; c=a+b 8"
},
{
"page_index": 87,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_009.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_009.png",
"page_index": 87,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:20:39+07:00"
},
"raw_text": " operation Assign at the declaration instruction: int x = 10; int y{8}; float z(10.01f); 9"
},
{
"page_index": 88,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_010.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_010.png",
"page_index": 88,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:20:49+07:00"
},
"raw_text": "E le xam p #include <iostream> using std; namespace C:WINDOWSsystem32c.. X main() int 24 area Press key any to continue 4.5; float width height 5.5; float int height; width * area endl; cout << area << area << 0 ; return 10"
},
{
"page_index": 89,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_011.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_011.png",
"page_index": 89,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:21:00+07:00"
},
"raw_text": "E xercise /*Goal: write that calculates the volumes a cube, a program of * * Write the values the to console. #include<iostream> using std; namespace int main) //Dimension of the cube float cubeSide; cout \"Enter the << size of cube: cin >> cubeSide; /TODO 0: return"
},
{
"page_index": 90,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_012.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_012.png",
"page_index": 90,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:21:04+07:00"
},
"raw_text": " operation What is the default type of constants? 1"
},
{
"page_index": 91,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_013.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_013.png",
"page_index": 91,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:21:10+07:00"
},
"raw_text": " operation Default type of constants depend on how v you declare it 10: decimal value, default type depends on context 012: octal value 0x64: hexadecimal value 3.1415: default type is double 1"
},
{
"page_index": 92,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_014.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_014.png",
"page_index": 92,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:21:16+07:00"
},
"raw_text": "(<target type>)<expression> E.g.: int (int)3.9583; a float (float)a 0.5f: x double (double) x (double) a;// is fine Y Y a: 1 4"
},
{
"page_index": 93,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_015.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_015.png",
"page_index": 93,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:21:26+07:00"
},
"raw_text": "licit mp t conversion int a = 65, integer 80 ; char charA = B', charC = 67 : 65, charB = 0.0; float = 0, floatNumber answer //we can assign an integer to a float floatNumber integer: = //we can assign a char to a float floatNumber charB; = C = floatNumber / 4; ahswer //But g a float to a char doesn't quite assigning work charc answer : //assigning a float to an interger, results in the float being truncated integer ahswer "
},
{
"page_index": 94,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_016.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_016.png",
"page_index": 94,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:21:32+07:00"
},
"raw_text": "A uto auto type appears from C++11 standard. Should we use auto? Where can we use auto? auto type: good or bad? 16"
},
{
"page_index": 95,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_017.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_017.png",
"page_index": 95,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:21:40+07:00"
},
"raw_text": "Operator Example Equivalent expression b a += a a - b b a a * = *= b b a a / = a/= b a =a/b % = %= b % b a a = a 17"
},
{
"page_index": 96,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_018.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_018.png",
"page_index": 96,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:21:45+07:00"
},
"raw_text": "E le xam"
},
{
"page_index": 97,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_019.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_019.png",
"page_index": 97,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:21:50+07:00"
},
"raw_text": "P Fix ostFix and Pc re Incrementing Decrementing prefix: ++a prefix: --a postfix: a++ postfix: a--"
},
{
"page_index": 98,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_020.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_020.png",
"page_index": 98,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:22:03+07:00"
},
"raw_text": "E le xam #include<iostream> using std; namespace int main( { int a = 10, b = 10; int 0; post, pre \"Inital values: tttpost 11 cout << post 1 << << pre << n\" << pre= post a++: ++b; pre \"After and prefix: tpost 11 11 cout << postfix r << << << one post pre= pre << post = a++: ++b; pre << \"After two postfix and prefix: tpost 11 11 11 cout << << pre post << pre= << 0; return 1"
},
{
"page_index": 99,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_021.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_021.png",
"page_index": 99,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:22:07+07:00"
},
"raw_text": "C++ S"
},
{
"page_index": 100,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_022.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_022.png",
"page_index": 100,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:22:13+07:00"
},
"raw_text": "C++ S Library is the place where e you implement functions, classes to serve some specific tasks. Definitions: constants, macro, structure, class Functions: implement specific algorithms, a unit of reusable code Class implementations 22"
},
{
"page_index": 101,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_023.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_023.png",
"page_index": 101,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:22:20+07:00"
},
"raw_text": "Library Definition <function name>(<in/out <return type> parameters>) ;// prototype <return type> <function name>(<in/out parameters>) implementation your 23"
},
{
"page_index": 102,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_024.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_024.png",
"page_index": 102,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:22:26+07:00"
},
"raw_text": "C++ S Common standard libraries: <stdio.h>, <cstdio> <math.h>, <cmath> <string.h>, <cstring> <assert.h>, <cassert> <errno.h>,<cerrno> <time.h>, <ctime> For more detail refer to http://en.cppreference.com/w/cpp/header 24"
},
{
"page_index": 103,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_025.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_025.png",
"page_index": 103,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:22:31+07:00"
},
"raw_text": "cstdio> perform Input/Output operations: <cstdio> For more detail refer to http://www.cplusplus.com/reference/cstdio/ 25"
},
{
"page_index": 104,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_026.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_026.png",
"page_index": 104,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:22:38+07:00"
},
"raw_text": "0 t format utput Text output format %dn\" i) i printf(ii 17 <<i << endl: cout Using function is a convenient way to format output. Using I/O streams require a bit modification in the sequence. 26"
},
{
"page_index": 105,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_027.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_027.png",
"page_index": 105,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:22:44+07:00"
},
"raw_text": "t format 0 utput printf(<format string>, arguments) %[flags] [width] [.precision][length]specifier flags: +, -, space, #, 0 .precision: .number, : width: number, X 27"
},
{
"page_index": 106,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_028.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_028.png",
"page_index": 106,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:22:55+07:00"
},
"raw_text": "t format 0 utput specifier output example d/i signed decimal integer -2354 unsigned decimal integer 3056 u unsigned octal 342 0 x/X unsigned hexadecimal integer 6f0c f/F decimal floating point 3.14159 e/E scientific notation 3.14159e-05 g/G use shortest representation 3.14159 a/A hexadecimal floating point -0xc.90dep-3 character C a string damn it S pointer address b8000000 p nothing will be printed, argument must be a pointer to a signed int. The number n of printed characters are stored location pointed by the pointer. % print %' character % 28"
},
{
"page_index": 107,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_029.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_029.png",
"page_index": 107,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:23:06+07:00"
},
"raw_text": "t format 0 utput #include <stdio.h> int main() printf(\"characters: %c %c n\" a', 65); printf(\"Decimals: %d %ldn\" 1977, 650000l); printf(\"Preceding blanks: %10d n\", . 1977) j with printf(\"Preceding with n\" 1977); zeros: %010d radices: %d n\", 100); printf(\"Some different printf(\"floats: %4.2f n\", 3.1416); n trick: %*d n\", 5, 10); printf(\"Width printf(\"%s 0: return 2 Characters: Decimals: 1977 650000 Preceding with blanks: 1977 Preceding with zeros: 0000001977 Some different radices: 1oo floats: 3.14 Width trick: 10 string 29"
},
{
"page_index": 108,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_030.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_030.png",
"page_index": 108,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:23:15+07:00"
},
"raw_text": "cstdio> / * gets example #include <cstdio> int main() char string[256]: printf(\"Insert full address: 1 j your gets_s(string); is: %s n\", s printf(\"Your string): address 0; return http://www.cplusplus.com/reference/cstdio/gets/ 30 Insert your full address: BK Your address is: Bk"
},
{
"page_index": 109,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_031.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_031.png",
"page_index": 109,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:23:22+07:00"
},
"raw_text": "library cmath> <cmath> operations : Trigonometric functions (sin, cos, tan,etc Hyperbolic functions (sinh, cosh, tanh, etc) Exponential and logarithmic functions (exp, 1og, etc) Power functions (pow, sqrt, etc) Rounding and remainder functions (ceil, , floor, etc) For more detail refer to http://www.cplusplus.com/reference/cmath/"
},
{
"page_index": 110,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_032.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_032.png",
"page_index": 110,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:23:31+07:00"
},
"raw_text": "cmath> sin example / * #include <cstdio> printf #include <cmath> sin #define PI 3.14159265 int main) double result: param, r 30.0; param sin(param*pI 180) ; result /1 = sine of %f is %f.n\", param, result); printf(\"The degrees 0: return 2 http://www.cplusplus.com/reference/cstdio/gets/"
},
{
"page_index": 111,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_033.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_033.png",
"page_index": 111,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:23:35+07:00"
},
"raw_text": "definition M acro"
},
{
"page_index": 112,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_034.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_034.png",
"page_index": 112,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:23:41+07:00"
},
"raw_text": "definition MI acro Extend across single line of code No semicolon at the end ' to write the define instruction with multiple lines Use 34"
},
{
"page_index": 113,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_035.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_035.png",
"page_index": 113,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:23:48+07:00"
},
"raw_text": "M definition acro Define constants: #define <identifier><replacement> #define 50 MAX CENGIH #define MY STRING fdefine pi 2 3.14159/2 #define pi 2 1.570785 Constants variables: 2 ;// x_2 cannot be changed float 2 const x 35"
},
{
"page_index": 114,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_036.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_036.png",
"page_index": 114,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:23:55+07:00"
},
"raw_text": "M definition acro More examples: #define 50 NORMALIZE EACTOR float fx NORMALIZE FACTOR: sum #define sub(a, b 36"
},
{
"page_index": 115,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_037.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_037.png",
"page_index": 115,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:01+07:00"
},
"raw_text": "definition M acro Macros: #define sub(a, b) a - b #define sub(a, b) (a - b) #define sub(a, b) ((a) - (b)) #define swap(a, b, c) { a =b; b = c; c=a; 37"
},
{
"page_index": 116,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_038.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_038.png",
"page_index": 116,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:09+07:00"
},
"raw_text": "E ple xam #include <stdio.h> #define swap(t, x, y) {t tmp tmp;} xj X = y; y int main) int 10, y 2 ; X - swap(int, x, y); %dn\", > printf(\"%d x, y); return 0; 2"
},
{
"page_index": 117,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_039.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_039.png",
"page_index": 117,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:17+07:00"
},
"raw_text": "definition MI acro Special operators: #: create a string literal that contains the argument #define #a text (a) f text(Be careful) end1;// print \"Be careful' cout << < glue(a, b) a ## fdefine b coden\";// but acceptable glue(c, out) wweird way to write 39"
},
{
"page_index": 118,
"chapter_num": 3,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_040.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_3/slide_040.png",
"page_index": 118,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:23+07:00"
},
"raw_text": "S ummarise Understand basic elements of C/C++ Use library functions Input values Macro, constants 40"
},
{
"page_index": 119,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_001.png",
"page_index": 119,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:29+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [C01027] - Fundamentals of C++ Programming Loop Lecturer: Duc Dung Nguyen Credits: 3"
},
{
"page_index": 120,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_002.png",
"page_index": 120,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:34+07:00"
},
"raw_text": "Today S Loop statements: while, for, do-while Structure programming 2"
},
{
"page_index": 121,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_003.png",
"page_index": 121,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:37+07:00"
},
"raw_text": "Loop statements"
},
{
"page_index": 122,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_004.png",
"page_index": 122,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:42+07:00"
},
"raw_text": "Waiting for something to happen Operate on several objects List, array of objects String 4"
},
{
"page_index": 123,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_005.png",
"page_index": 123,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:48+07:00"
},
"raw_text": "while loop Syntax: while (<condition>) <statement>; while <statements>; 5"
},
{
"page_index": 124,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_006.png",
"page_index": 124,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:24:53+07:00"
},
"raw_text": "while loop Flowchart <cond.> N Y statement(s) statement(s) 6"
},
{
"page_index": 125,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_007.png",
"page_index": 125,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:01+07:00"
},
"raw_text": "Example #include<iostream> using std; namespace int main() { int 0; counter - while (counter 10) < cout << counter << counter++; 2 endl; cout << 0: return"
},
{
"page_index": 126,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_008.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_008.png",
"page_index": 126,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:06+07:00"
},
"raw_text": "Syntax: do (<condition>); while <statement> do <statements>; while (<condition>); 8"
},
{
"page_index": 127,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_009.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_009.png",
"page_index": 127,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:12+07:00"
},
"raw_text": "Flowchart statement(s) Y <cond.> N statement(s) 9"
},
{
"page_index": 128,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_010.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_010.png",
"page_index": 128,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:20+07:00"
},
"raw_text": "Example #include<iostream> using std; namespace int main( { int 0: counter do { 1 cout << counter << counter++; while (counter 10) ; endl; cout << 0: return 2"
},
{
"page_index": 129,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_011.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_011.png",
"page_index": 129,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:24+07:00"
},
"raw_text": "Note Do not forget stopping condition. Take care of counters. 11"
},
{
"page_index": 130,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_012.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_012.png",
"page_index": 130,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:30+07:00"
},
"raw_text": "for statement Just another way to write iteration/loop structure! Counting is a frequent activity for: a specialised loop that package the following tasks in a statement Initialise a counter variable Modify the counter Check complete condition 12"
},
{
"page_index": 131,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_013.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_013.png",
"page_index": 131,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:36+07:00"
},
"raw_text": "for statement for loop: for (<initialization>; <condition>; <modification>) <statement>: (<initialization>; <condition>; <modification> for 1 <statements>; 13"
},
{
"page_index": 132,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_014.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_014.png",
"page_index": 132,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:42+07:00"
},
"raw_text": "for statement Flowchart initialization <cond.> N modification Y statement(s) statement(s) 14"
},
{
"page_index": 133,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_015.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_015.png",
"page_index": 133,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:47+07:00"
},
"raw_text": "for statement Initialization: set value for the counter s (same type) and init them at once Initialize many c counters if needed 15"
},
{
"page_index": 134,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_016.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_016.png",
"page_index": 134,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:25:54+07:00"
},
"raw_text": "Example #include<iostream> using std; namespace main() int for (int 0; i i < 10; i++ i 10 cout << << endl; cout << return 0; 16"
},
{
"page_index": 135,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_017.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_017.png",
"page_index": 135,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:26:02+07:00"
},
"raw_text": "for statement Note that initialization and modification can contain multiple statements #include <iostream> using std; namespace int r mainQ { int i, j; (i = 5, j = 10; i + j < 20; i++, j++) { for << \"i + j i (i + j) << 1n'j cout << 0: return 3"
},
{
"page_index": 136,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_018.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_018.png",
"page_index": 136,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:26:08+07:00"
},
"raw_text": "Infinite loops while (100) { while (true) { do while (-20); for (;;){ 18"
},
{
"page_index": 137,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_019.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_019.png",
"page_index": 137,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:26:13+07:00"
},
"raw_text": "Exist loops The two most commonly used are: continue: force the next iteration to be executed."
},
{
"page_index": 138,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_020.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_020.png",
"page_index": 138,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:26:23+07:00"
},
"raw_text": "Example #include <iostream> using std; namespace int r main() { int count; = 1; 10; count++) { for (count count <= if (count 5) break; 11 cout << count << 2 of loop endl; cout << \"nBroke out at count << count << 0; return"
},
{
"page_index": 139,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_021.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_021.png",
"page_index": 139,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:26:33+07:00"
},
"raw_text": "Example #include <iostream> using std; namespace int r main() { int count; for 10; count++) { (count = 1; count <= if (count 5) continue; <<c 11 cout count << 2 to skip printing endl; << nnUsed continue 5 cout << 0; return 2"
},
{
"page_index": 140,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_022.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_022.png",
"page_index": 140,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:26:39+07:00"
},
"raw_text": "A loop can be nested inside a loop. while (<condition <statements>; while 2>) { (<condition <statements>; while 3>)i (<condition <statements>: 22"
},
{
"page_index": 141,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_023.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_023.png",
"page_index": 141,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:26:46+07:00"
},
"raw_text": "Example #include <iostream> using std; namespace int main( { int i, j; for (i = 2; i<100; i++) { for (j (i / j); j++ =2 2; j <= if (!(i%j)) break; // if factor found, not prime (j >(i / j)) if << i << is primen\"; 11 cout return 0; 2"
},
{
"page_index": 142,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_024.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_024.png",
"page_index": 142,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:26:51+07:00"
},
"raw_text": "S tructure"
},
{
"page_index": 143,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_025.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_025.png",
"page_index": 143,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:26:55+07:00"
},
"raw_text": "tructure subroutines, block structures and for/while loops 25"
},
{
"page_index": 144,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_026.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_026.png",
"page_index": 144,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:01+07:00"
},
"raw_text": "Si tructure Loop and array Loop is good for performing operations on arrays, strings. \"while\", \"do-while\", \"for\" are exchangeable. Fixed size data should be processed using finite loops. 26"
},
{
"page_index": 145,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_027.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_027.png",
"page_index": 145,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:07+07:00"
},
"raw_text": "P roblem Input and draw the following figure in terminal: Input: N (number of lines) Output: (in case N = 5) * * x * * * * * * * * * * * * 27"
},
{
"page_index": 146,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_028.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_028.png",
"page_index": 146,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:13+07:00"
},
"raw_text": "P roblem Input and draw the following figure in terminal: Input: N (number of lines) Output: (in case N = 5) * * x x * * * x x x x x x * x x * * x X X X X X X X X X X 28"
},
{
"page_index": 147,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_029.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_029.png",
"page_index": 147,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:20+07:00"
},
"raw_text": "P roblem Input and draw the following figure in terminal: Input: N (number of lines) Output: (in case N = 5) * * * * * * * * * * * * * * * * * 29"
},
{
"page_index": 148,
"chapter_num": 4,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_030.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_4/slide_030.png",
"page_index": 148,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:25+07:00"
},
"raw_text": "S ummarise Understand loop structures: while, do-while , for Implements algorithms with loops 30"
},
{
"page_index": 149,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_001.png",
"page_index": 149,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:31+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [C01027] - Fundamentals of C++ Programming Pointer. Lecturer: Duc Dung Nguyen Array, Credits: 3"
},
{
"page_index": 150,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_002.png",
"page_index": 150,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:36+07:00"
},
"raw_text": "0 utcomes Using Using pointer Allocating and releasing dynamic memory 2"
},
{
"page_index": 151,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_003.png",
"page_index": 151,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:41+07:00"
},
"raw_text": "Today outline S Structured data types Array Structure Pointer Dynamic memory 3"
},
{
"page_index": 152,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_004.png",
"page_index": 152,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:45+07:00"
},
"raw_text": "Sl"
},
{
"page_index": 153,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_005.png",
"page_index": 153,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:50+07:00"
},
"raw_text": "Si 5"
},
{
"page_index": 154,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_006.png",
"page_index": 154,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:27:54+07:00"
},
"raw_text": "A rray"
},
{
"page_index": 155,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_007.png",
"page_index": 155,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:28:03+07:00"
},
"raw_text": "Name of the array is c V Position number of the c[ O ] -45 element within the array c[ 1 ] 6 c[ 2 ] O c[ 3 ] 72 Name of an individual 4 ] - Value c[ 1543 array element c[ 5 ] -89 c[ 6 ] 0 c[ 7 ] 62 c[ 8 ] -3 c[ 9 ] 1 c[ 10 ] 6453 c[ 11 ] 78 7"
},
{
"page_index": 156,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_008.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_008.png",
"page_index": 156,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:28:08+07:00"
},
"raw_text": "Declaring arraySize ]; <type> arrayName E.g: int c[5]; 0 1 2 4 c int 8"
},
{
"page_index": 157,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_009.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_009.png",
"page_index": 157,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:28:15+07:00"
},
"raw_text": "Initializing Arrays One by one E.g: c[4] 10; Using a loop E.g: for i=0;i<5 (int 5j i i++) c) c[i] 0; Declaring with an initializer : list E.g: int t c[5] 10, 20, 30, 40, 50 }; 9"
},
{
"page_index": 158,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_010.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_010.png",
"page_index": 158,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:28:22+07:00"
},
"raw_text": "an array name[index] Example: int 2 ; a c[0] a; c[a] 75; - c[a 21; b x c[c[a]] c[2] 5:"
},
{
"page_index": 159,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_011.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_011.png",
"page_index": 159,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:28:31+07:00"
},
"raw_text": "Example #include<iostream> #include<iomanip> using std; namespace int main( { int c[10]: for (int i = 0; i < 10; i++) c[i] 0; = \"Element\" setw(13) cout \"Value\" endl; << << << << for (int i = 0; i < 10; i++) setw(7) << i << setw(13) << c[i] endl; cout << <<6 return 0 :"
},
{
"page_index": 160,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_012.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_012.png",
"page_index": 160,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:28:40+07:00"
},
"raw_text": "Example #include<iostream> #include<iomanip> using std; namespace int main( { c[10] ={ int 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 } j setw(13) endl; << \"Element\" << \"Value\" cout << << for (int i = C 0; i < 1 10; i++) setw(7) << i << s setw(13) << c[i] << endl; cout << 0 : return"
},
{
"page_index": 161,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_013.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_013.png",
"page_index": 161,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:28:44+07:00"
},
"raw_text": "S tructure"
},
{
"page_index": 162,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_014.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_014.png",
"page_index": 162,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:28:50+07:00"
},
"raw_text": "St tructure s you to combine data items of different kinds. Books Title Author Subject Book ID 14"
},
{
"page_index": 163,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_015.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_015.png",
"page_index": 163,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:28:56+07:00"
},
"raw_text": "Defining S tructure a struct structure tag] definition; member definition; member definition; member variable(s)l; }{structure 15"
},
{
"page_index": 164,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_016.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_016.png",
"page_index": 164,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:29:03+07:00"
},
"raw_text": "Example Books struct char title[50]; char author[50]; char subject[100]; book_id; int } ; book1; Books struct"
},
{
"page_index": 165,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_017.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_017.png",
"page_index": 165,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:29:09+07:00"
},
"raw_text": "typedef struct char title[50]; char author[50]; char subject[100]; int book id; Books; book1: Books"
},
{
"page_index": 166,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_018.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_018.png",
"page_index": 166,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:29:17+07:00"
},
"raw_text": "S M embers tructure Using the member access operator C Book1; // Declare Books Book1 of struct type Book // book 1 s specification strcpy_s(Book1.title, Programming\"); Learn C++ strcpy_s(Book1.author, \"Chand Miyan\"); strcpy_s(Book1.subject, \"C++ Programming\"); Book1.book id 6495407 : =6 https://www.tutorialspoint.com/cplusplus/cpp data structures.htm 18"
},
{
"page_index": 167,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_019.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_019.png",
"page_index": 167,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:29:21+07:00"
},
"raw_text": "Pointer"
},
{
"page_index": 168,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_020.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_020.png",
"page_index": 168,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:29:27+07:00"
},
"raw_text": "Pointer count count directly references a variable that contains the value 7 countPtr count Pointer countPtr indirectly references a variable that contains the value 7 20"
},
{
"page_index": 169,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_021.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_021.png",
"page_index": 169,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:29:34+07:00"
},
"raw_text": "Declaring Direct way : <identifier> <type> E.g.: int * a: Using typedef keyword: typedef<type> <alias_type>; E.g.:. int + intPointer typedef intPointer a: 21"
},
{
"page_index": 170,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_022.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_022.png",
"page_index": 170,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:29:43+07:00"
},
"raw_text": "Using Pointers Defining a pointer variable int 20; // variable declaration. actual var *ip; int // pointer variable Assigning the address of a variable to a pointer ip = &var : // using address & operator Accessing the value at the address available in the pointer variable endl; // dereferencing * using cout << operator ip +"
},
{
"page_index": 171,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_023.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_023.png",
"page_index": 171,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:29:49+07:00"
},
"raw_text": "NULL Pointers Assigning the pointer NULL to a pointer variable in case you do not have exact address to be assigned *ptr int NULL : To check for a null if(ptr NULL) Or if(!ptr)"
},
{
"page_index": 172,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_024.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_024.png",
"page_index": 172,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:29:55+07:00"
},
"raw_text": "Using ointers r const with P Nonconstant Pointer to Nonconstant Data Nonconstant Pointer to Constant Data Constant Pointer to Nonconstant Data Constant Pointer to Constant Data"
},
{
"page_index": 173,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_025.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_025.png",
"page_index": 173,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:30:02+07:00"
},
"raw_text": "Using Pointers r const with Pc Nonconstant Pointer to Nonconstant Data the data can be modified through the dereferenced pointer the pointer can be modified to point to other data int 5 ; a = int b 9 ; int ptr &a; *ptr 6;// OK &b; // ptr OK"
},
{
"page_index": 174,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_026.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_026.png",
"page_index": 174,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:30:10+07:00"
},
"raw_text": "Using ointers const with P Nonconstant Pointer to Constant Data the data can NOT be modified through the dereferenced pointer the pointer can be modified to point to other data int 5 const a = int b 9 ; = int &a; const *ptr 6; // Error &b; // OK ptr"
},
{
"page_index": 175,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_027.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_027.png",
"page_index": 175,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:30:17+07:00"
},
"raw_text": "Using ointers const with P Constant Pointer to Nonconstant Data the data can be modified through the dereferenced pointer the pointer can NOT be modified to point to other data int 5 ; a = int b 9; int* &a; const ptr *ptr 6; // OK &b; // ptr Error"
},
{
"page_index": 176,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_028.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_028.png",
"page_index": 176,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:30:25+07:00"
},
"raw_text": "Using ointers r const with Pc Constant Pointer to Constant Data the data can NOT be modified through the dereferenced pointer the pointer can NOT be modified to point to other data int 5 j const a 9; int const int* &a; const ptr *ptr 6; // Error &b; // ptr Error"
},
{
"page_index": 177,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_029.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_029.png",
"page_index": 177,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:30:32+07:00"
},
"raw_text": "Pointer Arithmetic //p point to the next location ptr++; ptr + 1; ptr // point to the location previous ptr--: ptr - 1; ptr ="
},
{
"page_index": 178,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_030.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_030.png",
"page_index": 178,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:30:39+07:00"
},
"raw_text": "Pointer Order of operators // (p++) *++P // *(++p) / / ++(*p) / / increase location by (*p)++ value at pointed p / / (only with integer valid pointers) When in doubt, use safe statement. 30"
},
{
"page_index": 179,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_031.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_031.png",
"page_index": 179,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:30:47+07:00"
},
"raw_text": " Arrays Arrays and pointers are intimately related in C++ and may be used almost interchangeably. int var[MAX] 10,100,200 }j *ptr; int // let have address in pointer. us array ptr var : var++; // This is incorrect syntax. 31"
},
{
"page_index": 180,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_032.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_032.png",
"page_index": 180,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:30:57+07:00"
},
"raw_text": "Example #include <iostream> using std; namespace int MAX = 3; const int main( { int var[MAX] = { 10, 100, 200 }j int *ptr; // let us have array address in pointer ptr = var; for << \"Address of var[\" << i cout 11 << ptr << endl; 1 << \"value of var[\" 11 *ptr << endl; cout << << i << << - // point to the next location ptr++; 2 return 0: https://www.tutorialspoint.com/cplusplus/cpp pointer arithmatic.htm"
},
{
"page_index": 181,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_033.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_033.png",
"page_index": 181,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:31:06+07:00"
},
"raw_text": "ointers #include <iostream> using std; namespace int MAX = 4; const int mainQ { t Le\" }; *names[MAX] Nguyen\", \"Binh Tran\", \"Cong char = K\"An Pham\", \"Dat const for (int \"Value of << i << 11 (names + i) << endl; cout << names << 0: return https://www.tutorialspoint.com/cplusplus/cpp array of pointers.htm"
},
{
"page_index": 182,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_034.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_034.png",
"page_index": 182,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:31:14+07:00"
},
"raw_text": "Pc ointer to P ointer Pointer Pointer Variable Address Address Value int 300; var *ptr int &var; // take the address of var int * * pptr &ptr; // take the address of ptr https://www.tutorialspoint.com/cplusplus/cpp_pointer_to_pointer.ht m"
},
{
"page_index": 183,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_035.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_035.png",
"page_index": 183,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:31:26+07:00"
},
"raw_text": "Example #include <iostream> using std; namespace int main( { int 300; var = int &var; // take the address of var int + * pptr = &ptr; // take the address of ptr // take the value using pptr \"value of cout << << endl; var : << var \"value cout available at << endl; << << \"value at pptr : * + available pptr << endl; cout << << return 0: https://www.tutorialspoint.com/cplusplus/cpp pointer to_pointer.ht m"
},
{
"page_index": 184,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_036.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_036.png",
"page_index": 184,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:31:32+07:00"
},
"raw_text": "References variable int a = 10; int& b a: values. https://www.tutorialspoint.com/cplusplus/cpp references.htm 36"
},
{
"page_index": 185,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_037.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_037.png",
"page_index": 185,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:31:42+07:00"
},
"raw_text": "Example #include<iostream> using std; namespace int r main() { int 10 ; a = int& a: e of endl: \"value cout << << a << \"value a reference b endl: cout << of << <<e 6 ; a = \"value of endl; cout << << a << \"value b endl: cout << of a reference << <<e"
},
{
"page_index": 186,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_038.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_038.png",
"page_index": 186,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:31:48+07:00"
},
"raw_text": "References Once a reference is initialized to an object, it cannot be changed to refer to another object. A reference must be initialized when it is created. Pointers can be time"
},
{
"page_index": 187,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_039.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_039.png",
"page_index": 187,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:31:53+07:00"
},
"raw_text": "D M erory"
},
{
"page_index": 188,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_040.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_040.png",
"page_index": 188,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:00+07:00"
},
"raw_text": "Allocating c Mc emory Here is the syntax: <pointer> = new <type> Examples: int * int[5] a new a[0] a[1] a[2] a[3] a[4] a int"
},
{
"page_index": 189,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_041.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_041.png",
"page_index": 189,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:05+07:00"
},
"raw_text": "Releasing M emory delete <pointer> delete Examples: delete a;"
},
{
"page_index": 190,
"chapter_num": 5,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_042.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_5/slide_042.png",
"page_index": 190,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:10+07:00"
},
"raw_text": "S ummarise Structured data types Array Structure Pointer Dynamic memory 42"
},
{
"page_index": 191,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_001.png",
"page_index": 191,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:16+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [C01027] - Fundamentals of C++ Programming Lecturer: Duc Dung Nguyen F unction Credits: 3"
},
{
"page_index": 192,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_002.png",
"page_index": 192,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:20+07:00"
},
"raw_text": "0 utcomes 2"
},
{
"page_index": 193,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_003.png",
"page_index": 193,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:25+07:00"
},
"raw_text": "Outline Function: definition, declaration, parameters, returned value Scope of variables Storage 3"
},
{
"page_index": 194,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_004.png",
"page_index": 194,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:30+07:00"
},
"raw_text": "F unction"
},
{
"page_index": 195,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_005.png",
"page_index": 195,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:35+07:00"
},
"raw_text": "Fi unction You should never write monolithic code Difficult to write correctly. Difficult to debug. Difficult to extend Hard to maintenance Non-reusable Nonsense! 5"
},
{
"page_index": 196,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_006.png",
"page_index": 196,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:41+07:00"
},
"raw_text": "Input Function Output All C++ functions (except the special case of the main function) should have: A declaration: this is a statement of how the function is to be called. A definition: this is the statement(s) of the task the function performs when called"
},
{
"page_index": 197,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_007.png",
"page_index": 197,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:46+07:00"
},
"raw_text": "Declaration E unction A function is declared with the syntax: returnVariableType functionName(parameter1, p parameter2, Note the semi-colon at the end of the statement."
},
{
"page_index": 198,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_008.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_008.png",
"page_index": 198,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:52+07:00"
},
"raw_text": "Definition Fi unction A function is defined with the syntax: retVariableType functionName(parameter1, parameter2 : parameterN) statement(s): 2"
},
{
"page_index": 199,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_009.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_009.png",
"page_index": 199,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:32:58+07:00"
},
"raw_text": "F1 unction C++ functions can: Accept parameters, but they are not required Return values, but a return value is not required Can modify parameters, if given explicit direction to do so 9"
},
{
"page_index": 200,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_010.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_010.png",
"page_index": 200,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:33:05+07:00"
},
"raw_text": "unction: No Return. No P E arameters #include<iostream> using std; namespace void displayMessage(): main() { int displayMessage(); 0: return void displayMessage( { \"welcome to C01011!n\" cout << 10"
},
{
"page_index": 201,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_011.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_011.png",
"page_index": 201,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:33:13+07:00"
},
"raw_text": "arameters #include<iostream> using std; namespace void displaySum(int, int); int main( { displaySum(5, 10); 0: return void displaySum(int num2 { num1, int %d %dn\" printf(\"%d num1, num2, num2) ; + num1 = + 11"
},
{
"page_index": 202,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_012.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_012.png",
"page_index": 202,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:33:22+07:00"
},
"raw_text": "s with Return unctions #include<iostream> using std; namespace int computeSum(int, int); int mainQ) { int computeSum(5, 10); s um %d %dn\", 5, 10, s sum) ; printf(\"%d + = 0; return int computeSum(int num1, int num2) num1 num2; return + 12"
},
{
"page_index": 203,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_013.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_013.png",
"page_index": 203,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:33:28+07:00"
},
"raw_text": "Inline unction Similar to function, except that the compiled code will be inserted where we call inline functions. Purpose: improve performance inline <return type> <function <function body> 13"
},
{
"page_index": 204,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_014.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_014.png",
"page_index": 204,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:33:34+07:00"
},
"raw_text": "P P ass arameters Parameters: there are two ways to pass s parameters to a function Value: the value will be copied to local variable (parameter) of the function Reference (only in C++): the parameter is associated with passed variable Passing by reference refers to passing the address of the variable Any change in the parameter affects the variable 14"
},
{
"page_index": 205,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_015.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_015.png",
"page_index": 205,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:33:44+07:00"
},
"raw_text": "Example #include<iostream> using std; namespace void increment(int &input); int main() { int 34; a = cout \"Before << the function call a << 1 << n\" a increment(a); the \"After function call cout << a << a << n\" return 0 j 2 d increment(int &input){ void input++;"
},
{
"page_index": 206,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_016.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_016.png",
"page_index": 206,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:33:50+07:00"
},
"raw_text": "R arameters There are three methods for passing g an array by reference to a function: functionName(variableType returnType arrayName) functionName(variableType returnType arrayName[arraySize] functionName(variableType returnType arrayName[]"
},
{
"page_index": 207,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_017.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_017.png",
"page_index": 207,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:33:58+07:00"
},
"raw_text": "Example #include<iostream> #include<iomanip> using namespace std; *array, int size); void arrayAsPointer(int int main( { const int size = 3; int array[size] = { 33,66,99 }j arrayAsPointer(array, size); 0; return void arrayAsPointer(int *array, int size { cout << setw(5); for (int t i = 0; i<size; i++ array[i] << 11 cout << \"n\"; cout << 2"
},
{
"page_index": 208,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_018.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_018.png",
"page_index": 208,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:34:04+07:00"
},
"raw_text": "Default P: arameters in a function call. arguments in a"
},
{
"page_index": 209,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_019.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_019.png",
"page_index": 209,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:34:16+07:00"
},
"raw_text": "Example #include<iostream> using std; namespace int computeBoxVolume(int length = 1, int width = 1, int height int main) { \"The box volume computeBoxVolume() <<endl; cout << default << \"The l boX computeBoxVolume(10) yolume endl: cout << second << << int length, int height) { computeBoxVolume(int width, int length + * width height; return 3"
},
{
"page_index": 210,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_020.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_020.png",
"page_index": 210,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:34:21+07:00"
},
"raw_text": "unction Several functions can have the same name: overloaded functions Functions with the same name have different signatures (prototypes) 20"
},
{
"page_index": 211,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_021.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_021.png",
"page_index": 211,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:34:30+07:00"
},
"raw_text": "Example float add(float b) j a, float int add(int b) ; a, int a, double b); double add(int b) { float add(float . a, float b: return a + int c b) { add(int a, int b; return l a + a, double b) { double add(int return (double)a + b; 2 21"
},
{
"page_index": 212,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_022.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_022.png",
"page_index": 212,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:34:35+07:00"
},
"raw_text": "Header Files unction in It is quite common to put functions into a header file."
},
{
"page_index": 213,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_023.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_023.png",
"page_index": 213,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:34:39+07:00"
},
"raw_text": "ariables"
},
{
"page_index": 214,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_024.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_024.png",
"page_index": 214,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:34:45+07:00"
},
"raw_text": "ariables scope Global vs. Local variables Local variables can only be accessed inside the block where it is declared (local scope). Local scope begins at the identifier's declaration and ends at the (}) terminating right brace 24"
},
{
"page_index": 215,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_025.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_025.png",
"page_index": 215,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:34:54+07:00"
},
"raw_text": "ariables #include<iostream> using std; namespace int x = 5; // global variable int main() { \"global x = endl: cout << << X << e int y = variable; 7; // local \"local y in main's scope 11 cout << y << end1; << - { // start a new l scope int z = 9: << \"local z in inner 11 cout << z << endl; scope return 0 ; 25"
},
{
"page_index": 216,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_026.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_026.png",
"page_index": 216,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:34:58+07:00"
},
"raw_text": "Scope Resolution It's possible to declare local and global variables of the same name. Local variables take precedence over global variables 26"
},
{
"page_index": 217,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_027.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_027.png",
"page_index": 217,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:35:07+07:00"
},
"raw_text": "Example #include<iostream> using std; namespace int 8; // global variable num int main) int 10; //local variable num Local variable 11 endl; cout << << << num num 11 endl; \"Global << variable << : :num cout << num - 0: return 2 27"
},
{
"page_index": 218,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_028.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_028.png",
"page_index": 218,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:35:12+07:00"
},
"raw_text": "S torage"
},
{
"page_index": 219,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_029.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_029.png",
"page_index": 219,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:35:17+07:00"
},
"raw_text": "S torage How program is organized? your 29"
},
{
"page_index": 220,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_030.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_030.png",
"page_index": 220,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:35:24+07:00"
},
"raw_text": "S torage high address command line arguments //// and environment variables stack heap uninitialized data (bss initialised to zero by exec initialized data read from program file text (code segment) low address 30"
},
{
"page_index": 221,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_031.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_031.png",
"page_index": 221,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:35:30+07:00"
},
"raw_text": "S torage Code segment: contains executable code (binary code) Initialized data: global, static, constants Uninitialized data 31"
},
{
"page_index": 222,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_032.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_032.png",
"page_index": 222,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:35:38+07:00"
},
"raw_text": "Call F unction #include <iostream> using std; namespace int square(int); // for function prototype sguare int main) int 10; a square(a) endl: cout << a << sguared: << << 0: return int x) { square(int * return l X x ;"
},
{
"page_index": 223,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_033.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_033.png",
"page_index": 223,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:35:47+07:00"
},
"raw_text": "Call F unction Step I : Operating system invokes main to execute application. int mainO Operating system int 10; a = cout << squared: a << square( a << endl; << return 0; Return location RI 2 Function call stack after Step / Top of stack Return location: RI Activation record Automatic variables: for function main Key 10 a Lines that represent the operating system executing instructions"
},
{
"page_index": 224,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_034.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_034.png",
"page_index": 224,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:35:55+07:00"
},
"raw_text": "Call F unction Step 2: main invokes function square to perform calculation. int mainO int square( int x ) Y int a = 10; cout << a << squared: Return location R2 square( a ) << endl; << 0;L return Function call stack after Step 2 Top of stack Return location: R2 Activation record for Automatic variables: function square x 10 Return location: Rl Activation record Automatic variables: for function main a 10"
},
{
"page_index": 225,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_035.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_035.png",
"page_index": 225,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:03+07:00"
},
"raw_text": "Call F unction Step 3: square returns its result to main. int main() int square( int x ) int a = 10; cout squared: \" <<a<< Return location R2 square( a << endl; << return 0; 4 Function call stack after Step 3 Top of stack Return location: RI Activation record Automatic variables: for function main a 10"
},
{
"page_index": 226,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_036.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_036.png",
"page_index": 226,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:08+07:00"
},
"raw_text": "S torage Common errors: Use variables without initialization Memory fault Access restricted areas 36"
},
{
"page_index": 227,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_037.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_037.png",
"page_index": 227,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:16+07:00"
},
"raw_text": "ninitialized U variables #include <iostream> #include <math.h> using std; namespace float val; a, float b) { float foo(float b; val += b + val; return * a 1 S int main( { float x, y; x = 0.5f; cout << foo(x, y) << endl; 0: return 37"
},
{
"page_index": 228,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_038.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_038.png",
"page_index": 228,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:25+07:00"
},
"raw_text": "Me fault s freed emory access memory #include <iostream> #include <math.h> using std; namespace foo(float b) { float* a, float b; a += return &a; int mainQ { float x, y; 0.5f; X = 1 3.9f; float *pRet = foo(x, y); *pRet cout << << endl; 0 : return 38"
},
{
"page_index": 229,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_039.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_039.png",
"page_index": 229,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:34+07:00"
},
"raw_text": "#include <iostream> #include <math.h> foo(char pStr) { void char buf[10]; strcpy_s(buf, pStr); int main( { char [] \"This string pStr the local buffer\": t will overwrite foo(pStr) : return 0 ; 2 39"
},
{
"page_index": 230,
"chapter_num": 6,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_040.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_6/slide_040.png",
"page_index": 230,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:39+07:00"
},
"raw_text": "S ummarise How to pass s parameters, understand scope of variables 40"
},
{
"page_index": 231,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_001.png",
"page_index": 231,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:44+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [C01027] - Fundamentals of C++ Programming Lecturer: Duc Dung Nguyen Credits: 3"
},
{
"page_index": 232,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_002.png",
"page_index": 232,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:48+07:00"
},
"raw_text": "utcomes Understand recursive algorithms Declare and implement recursive functions 2"
},
{
"page_index": 233,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_003.png",
"page_index": 233,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:53+07:00"
},
"raw_text": "utline 0 Recursion 3"
},
{
"page_index": 234,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_004.png",
"page_index": 234,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:36:56+07:00"
},
"raw_text": ""
},
{
"page_index": 235,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_005.png",
"page_index": 235,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:02+07:00"
},
"raw_text": "Problem solving methods Principle: divide the big problem into smaller problems Recursivity is a property that function have to be called by themselves. Principle: define the solution of big problem using the solution of smaller L5"
},
{
"page_index": 236,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_006.png",
"page_index": 236,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:07+07:00"
},
"raw_text": "Factorial function: f(n) = n! 0!= 1 f(n) = f(n - 1) n Fibonacci sequence is defined as follows F(1) = F(2) = 1 F(n) = F(n - 1) + F(n - 2) 6"
},
{
"page_index": 237,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_007.png",
"page_index": 237,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:12+07:00"
},
"raw_text": "A recursive termination is a condition that, when met, will cause the Factorial function: f(n) = n! 0! = 1 (recursive termination) f(n) = f(n -1 n"
},
{
"page_index": 238,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_008.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_008.png",
"page_index": 238,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:20+07:00"
},
"raw_text": "Example #include<iostream> using std; namespace int factorial(int n); main() { int factorial(5) endl; cout << << 0: return factorial(int n) { int 0) 1 1; if (n return factorial(n - 1); + return n"
},
{
"page_index": 239,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_009.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_009.png",
"page_index": 239,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:28+07:00"
},
"raw_text": "Example #include<iostream> using std; namespace int fibonacci(int n); main() { int fibonacci(5) endl; cout << <<e 0: return n) { int fibonacci(int if (n <= 2) 1; return fibonacci(n - 1) fibonacci(n - 2); return +"
},
{
"page_index": 240,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_010.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_010.png",
"page_index": 240,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:36+07:00"
},
"raw_text": "Indirect ] #include <iostream> using namespace std; int fa(int); int fb(int); int mainQ { int num = 5; cout << fa(num) << endl; return 0: 2 int fa(int n) { if (n <= 1) return 1: * fb(n - 1); else return int fb(int n) { if (n <= 1 return 1: * fa(n - 1); else return n 2"
},
{
"page_index": 241,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_011.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_011.png",
"page_index": 241,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:42+07:00"
},
"raw_text": "Head recursion: the first statement in function is a recursive call Middle / i multi-recursion Mutual recursion: function X and Y are mutually-recursive if function X calls function Y, and function Y in turn call function X. This is called indirect recursion 11"
},
{
"page_index": 242,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_012.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_012.png",
"page_index": 242,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:46+07:00"
},
"raw_text": "Iteration l vs.1"
},
{
"page_index": 243,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_013.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_013.png",
"page_index": 243,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:51+07:00"
},
"raw_text": "counterparts much simpler to write much cleaner and easier to follow 13"
},
{
"page_index": 244,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_014.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_014.png",
"page_index": 244,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:37:56+07:00"
},
"raw_text": "When to choose recursion The recursive code is much simpler to implement. The recursion depth can be limited (e.g. there's no way to provide an input that will e down 100,000 levels). cause it to recurse"
},
{
"page_index": 245,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_015.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_015.png",
"page_index": 245,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:02+07:00"
},
"raw_text": "More examples Simple: print a string backward Classic: Hanoi tower 15"
},
{
"page_index": 246,
"chapter_num": 7,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_016.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_7/slide_016.png",
"page_index": 246,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:07+07:00"
},
"raw_text": "S ummarise Recursion technique 16"
},
{
"page_index": 247,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_001.png",
"page_index": 247,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:13+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [C01027] - Fundamentals of C++ Programming Lecturer: Duc Dung Nguyen Class Credits: 3"
},
{
"page_index": 248,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_002.png",
"page_index": 248,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:17+07:00"
},
"raw_text": "utcomes Understand the concept of Class. Understand advantages of Object Oriented Programming (OOP). 2"
},
{
"page_index": 249,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_003.png",
"page_index": 249,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:23+07:00"
},
"raw_text": "utline 0 Class: Concept and definition Encapsulation Constructor / Destructor 3"
},
{
"page_index": 250,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_004.png",
"page_index": 250,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:28+07:00"
},
"raw_text": "Object-Oi S riented P tructure versus Structure program. data and its functions"
},
{
"page_index": 251,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_005.png",
"page_index": 251,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:33+07:00"
},
"raw_text": "Limitations of St tructure difficult to understand and maintain difficult to modify and extend easy to break"
},
{
"page_index": 252,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_006.png",
"page_index": 252,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:37+07:00"
},
"raw_text": "Cl ass"
},
{
"page_index": 253,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_007.png",
"page_index": 253,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:42+07:00"
},
"raw_text": "Class information Data Functions (Methods) 7"
},
{
"page_index": 254,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_008.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_008.png",
"page_index": 254,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:47+07:00"
},
"raw_text": "Object is an instant of a particular class Data are known as fields, members, attributes, or properties Functions are known as methods"
},
{
"page_index": 255,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_009.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_009.png",
"page_index": 255,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:53+07:00"
},
"raw_text": "C1 A Class is like a blueprint and objects are like houses built from the blueprint Blueprint that describes a house. House Plan Living Room Bedroom Instances of the house described by the blueprint"
},
{
"page_index": 256,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_010.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_010.png",
"page_index": 256,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:38:58+07:00"
},
"raw_text": "Features subroutines that operate on them together in one place, and to hide irrelevant details from the user. 10"
},
{
"page_index": 257,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_011.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_011.png",
"page_index": 257,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:03+07:00"
},
"raw_text": "Packaging related stuff together 11"
},
{
"page_index": 258,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_012.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_012.png",
"page_index": 258,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:08+07:00"
},
"raw_text": "Class Declaration class <class Name> <access_specifier>: declaration; member <access_specifier>: declaration; member } ; 12"
},
{
"page_index": 259,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_013.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_013.png",
"page_index": 259,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:16+07:00"
},
"raw_text": "Example Class class Rectangle private: width; double double height; public: setWidth(double); void void setHeight(double) ; double getWidth(); double getHeight(); getArea() ; double } j"
},
{
"page_index": 260,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_014.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_014.png",
"page_index": 260,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:22+07:00"
},
"raw_text": "Class s Access Used to control access to members of the class: accessible from within the class. No outside Access is allowed. Class through an object of the class. Can be listed in any order in a class 14"
},
{
"page_index": 261,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_015.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_015.png",
"page_index": 261,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:28+07:00"
},
"raw_text": "Mc F Definition ember unction Put prototype in class declaration Rectangle: : setwidth(double void W width = W5"
},
{
"page_index": 262,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_016.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_016.png",
"page_index": 262,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:34+07:00"
},
"raw_text": "Declaration vs Definition Separate the declaration (specification) part from the definition (implementation) part. Place class declaration in a header file. E.g. Rectangle.h This file must #include the class specification file."
},
{
"page_index": 263,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_017.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_017.png",
"page_index": 263,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:40+07:00"
},
"raw_text": "Set and Get Set (mutator): a member function that stores a value in a private member void setWidth(double); setHeight(double) j void Get (accessor): a member function that retrieves a value from a private member variable. double getwidthQ ; double getHeightQ j"
},
{
"page_index": 264,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_018.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_018.png",
"page_index": 264,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:47+07:00"
},
"raw_text": "Us sing const With Member unctions Example double getWidth() const: double getHeight() const: getArea() double const:"
},
{
"page_index": 265,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_019.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_019.png",
"page_index": 265,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:52+07:00"
},
"raw_text": "Scope operator Is used in the definition of member function outside the class Inline function vs. normal function Member functions defined in the class definition is considered as inline function 19"
},
{
"page_index": 266,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_020.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_020.png",
"page_index": 266,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:39:58+07:00"
},
"raw_text": "S Cl M embers tatic lass variables since they are Static data members: are considered as \"class\" Need to be initialized somewhere outside the class Example: object counter 20"
},
{
"page_index": 267,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_021.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_021.png",
"page_index": 267,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:03+07:00"
},
"raw_text": "Destructor"
},
{
"page_index": 268,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_022.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_022.png",
"page_index": 268,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:07+07:00"
},
"raw_text": "object is created . do not return a value, including void. can not be called explicitly as member functions. 22"
},
{
"page_index": 269,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_023.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_023.png",
"page_index": 269,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:13+07:00"
},
"raw_text": "Default Constructor If write a default A simple instantiation of a class (with no arguments) calls the default constructor: Rectangle"
},
{
"page_index": 270,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_024.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_024.png",
"page_index": 270,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:18+07:00"
},
"raw_text": "S /ntax class <class Name> public: <class_Name>(); } j"
},
{
"page_index": 271,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_025.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_025.png",
"page_index": 271,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:24+07:00"
},
"raw_text": "arameters Indicate parameters in prototype: Rectangle(double , double ) j Use parameters in the definition: Rectangle: :Rectangle(double = W; width = h; height Rectangle r2(6, 4);"
},
{
"page_index": 272,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_026.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_026.png",
"page_index": 272,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:29+07:00"
},
"raw_text": "More About Default constructor. For example: Rectangle(double 0, double 0) j execute: Rectangle 26"
},
{
"page_index": 273,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_027.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_027.png",
"page_index": 273,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:34+07:00"
},
"raw_text": " parameters match the arguments. Rectangle; Rectangle(double) j Rectangle(double, double); 27"
},
{
"page_index": 274,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_028.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_028.png",
"page_index": 274,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:40+07:00"
},
"raw_text": "Destructor an object ends. Destructors cannot: return a value accept parameters Destructors must have the same name as the class. Only one destructor per class, i.e., it cannot be overloaded 28"
},
{
"page_index": 275,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_029.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_029.png",
"page_index": 275,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:45+07:00"
},
"raw_text": "Destructor S vntax class <class Name> public: <class_Name>(); } j"
},
{
"page_index": 276,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_030.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_030.png",
"page_index": 276,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:52+07:00"
},
"raw_text": "Using Member P E rivate unctions A private member function can only be called by another member function If two elements, you'd make that private swap 30"
},
{
"page_index": 277,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_031.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_031.png",
"page_index": 277,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:40:56+07:00"
},
"raw_text": "Rectangle rooms[8] 31"
},
{
"page_index": 278,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_032.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_032.png",
"page_index": 278,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:02+07:00"
},
"raw_text": "Rectangle rectArray[3]={Rectangle(2.1,3.2) Rectangle(4.1, 9.9): Rectangle(11.2, 31.4)}: 32"
},
{
"page_index": 279,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_033.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_033.png",
"page_index": 279,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:07+07:00"
},
"raw_text": "Accessing Objects are referenced using subscripts Objects in an array Member functions are referenced using dot notation: rectArray[1].setWidth(11.3); rectrArray[1].getArea(): cout <<"
},
{
"page_index": 280,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_034.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_034.png",
"page_index": 280,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:14+07:00"
},
"raw_text": "Pointer to Class E.g.: e r2(6, 4); Rectangle &r2; Rectangle* r3 endl; cout << << (*r3).getArea() endl; cout << << 34"
},
{
"page_index": 281,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_035.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_035.png",
"page_index": 281,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:20+07:00"
},
"raw_text": "C++ keyword) Rectangle: :setwidth(double width) void this->width widthj 2 35"
},
{
"page_index": 282,
"chapter_num": 8,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_036.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_8/slide_036.png",
"page_index": 282,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:25+07:00"
},
"raw_text": "S ummarise Understand Class: concept and definition, encapsulation Member functions, static and const members Constructor/Destructor and overloaded operators 36"
},
{
"page_index": 283,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_001.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_001.png",
"page_index": 283,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:31+07:00"
},
"raw_text": "BK TP.HCM Hochiminh City University of Technology Computer Science and Engineering [CO1027] - Fundamentals of C++ Programming Overloading & Lecturer: Duc Dung Nguyen Inheritance Credits: 3"
},
{
"page_index": 284,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_002.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_002.png",
"page_index": 284,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:36+07:00"
},
"raw_text": "utline 0 - Operator overloading Friendship Inheritance 2"
},
{
"page_index": 285,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_003.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_003.png",
"page_index": 285,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:40+07:00"
},
"raw_text": "0 perator"
},
{
"page_index": 286,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_004.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_004.png",
"page_index": 286,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:48+07:00"
},
"raw_text": "undamentals of O E perator Overloading an operator -Write function definition as normal -Function name is keyword operator followed by the symbol for the operator being overloaded - Using operators -To use an operator on a class object it must be overloaded unless the assignment operator (=) or the address operator (&) Assignment operator by default performs memberwise assignment Address operator (&) by default returns the address of an object 4"
},
{
"page_index": 287,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_005.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_005.png",
"page_index": 287,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:41:59+07:00"
},
"raw_text": "Restrictions 0 s on perator - Operators that can be overloaded * / + % & += *= < > /= %= = &= I= << >> >>= != <= >= I I <<= && ++ -> [] () ->* delete new new[] delete[] Operators that cannot be overloaded * ? : sizeof 5"
},
{
"page_index": 288,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_006.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_006.png",
"page_index": 288,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:06+07:00"
},
"raw_text": "Restrictions on O1 perator Overloading restrictions -Precedence of an operator cannot be changed -Associativity of an operator cannot be changed -Arity (number of operands) cannot be changed . Unary operators remain unary, and binary operators remain binary - Operators &, *, + and - each have unary and binary versions - Unary and binary versions can be overloaded separately -Use only existing operators - No overloading operators for built-in types -Cannot change how two integers are added -Produces a syntax error"
},
{
"page_index": 289,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_007.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_007.png",
"page_index": 289,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:11+07:00"
},
"raw_text": "Friendship"
},
{
"page_index": 290,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_008.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_008.png",
"page_index": 290,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:15+07:00"
},
"raw_text": "Friendship Friends are functions or classes declared with the friend keyword. 8"
},
{
"page_index": 291,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_009.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_009.png",
"page_index": 291,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:22+07:00"
},
"raw_text": "Friend function member A non-member function can access private and protected members of class if it is declared as a friend of class. E.g.: class Student public: friend Student duplicateStudent(Student& a)i } i 9"
},
{
"page_index": 292,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_010.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_010.png",
"page_index": 292,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:28+07:00"
},
"raw_text": "Friend class Friend class: is a class whose members can access to private and protected members of other classes. class Lecturer i class Student friend class Lectureri// lecturer is friend a } i 10"
},
{
"page_index": 293,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_011.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_011.png",
"page_index": 293,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:33+07:00"
},
"raw_text": "Inheritance"
},
{
"page_index": 294,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_012.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_012.png",
"page_index": 294,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:37+07:00"
},
"raw_text": "t Is Inheritance? What"
},
{
"page_index": 295,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_013.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_013.png",
"page_index": 295,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:42+07:00"
},
"raw_text": "When a class inherits from another class, there are three benefits: You can reuse the methods and data of the existing class You can modify the existing class by overloading its methods with your own implementations"
},
{
"page_index": 296,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_014.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_014.png",
"page_index": 296,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:47+07:00"
},
"raw_text": "Relationship The // // 1s a Inheritance establishes an \"is a\" relationship between classes. A poodle is a dog A car is a vehicle A flower is a plant A football player is an athlete"
},
{
"page_index": 297,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_015.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_015.png",
"page_index": 297,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:42:56+07:00"
},
"raw_text": "and Notation in C ++ Base class (or parent) - inherited from Derived class (or child) - inherits from the base class Notation: class Student base class } i UnderGrad : public class student // derived class t i"
},
{
"page_index": 298,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_016.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_016.png",
"page_index": 298,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:43:03+07:00"
},
"raw_text": " Exmaple Inheritance Triangle Square Rectangle Shape Polygon Parallelogram Rhombus Ellipse Circle 16"
},
{
"page_index": 299,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_017.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_017.png",
"page_index": 299,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:43:12+07:00"
},
"raw_text": "Inheritance S vntax class <cName> <access specifier> : } i E.g.: Shape } i class Polygon public S 3 : F class Rectangle : public Polygon } i class Rectangle, public Rhombus Square public }i : 1 class Ellipse: public Shape }i 17"
},
{
"page_index": 300,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_018.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_018.png",
"page_index": 300,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:43:21+07:00"
},
"raw_text": " Example Inheritance #include \"shape.h\" class Polygon : public Shape { int nVertex: Vector2D* pVertex; public: Polygon(int n : ShapeO, nVertex(n) {} class Shape { Polygon() ; int id; void draw(; public: } ; ShapeO { id = 0; } ShapeO ; void draw(); #include \"Shape.h\" }; class Ellipse : public Shape { float theta; center, len; Vector2D public: Ellipse; EllipseO; void draw; } j 18"
},
{
"page_index": 301,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_019.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_019.png",
"page_index": 301,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:43:26+07:00"
},
"raw_text": "Back to the Relationship ls a An object of a derived class s 'is a(n)' object of the base class Example: an UnderGradis a Student 1 - a Mammal is an Animal A derived object has all of the characteristics of the base class"
},
{
"page_index": 302,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_020.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_020.png",
"page_index": 302,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:43:33+07:00"
},
"raw_text": "What Does a Child Ha ave An object of the derived class s has: all members defined in child class all members declared in parent class An object of the derived class can use: all pub1ic members defined in child class pub1ic members defined in parent class all"
},
{
"page_index": 303,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_021.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_021.png",
"page_index": 303,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:43:39+07:00"
},
"raw_text": "building Rules for hierarchy a class A derived class can also serve as a base class for new classes. There is no limit on the depth of inheritance allowed in C++ (as far as it is within the limits of your compiler) It is possible for a class to be a base class for more than one derived class"
},
{
"page_index": 304,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_022.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_022.png",
"page_index": 304,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:43:44+07:00"
},
"raw_text": "B ase and Derived Classes Derived classes can have their own constructors and destructors executed first, followed by the derived class's constructor then that of the base class"
},
{
"page_index": 305,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_023.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_023.png",
"page_index": 305,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:43:51+07:00"
},
"raw_text": "P assing Ba Class ase Allows selection between multiple base class constructors E.g: Square::Square(int side) : Rectangle(side, side) Can also be done with inline constructors Must be done if base class has no default constructor"
},
{
"page_index": 306,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_024.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_024.png",
"page_index": 306,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:43:57+07:00"
},
"raw_text": "rotected Access P A base class's public members are accessible within its body and anywhere that the A base class's private members are accessible only within its body and to the friends of that base class A base class's protected members can be accessed within the body of that base class, classes s derived from that base class. and private access. 24"
},
{
"page_index": 307,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_025.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_025.png",
"page_index": 307,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:44:05+07:00"
},
"raw_text": "Inheritance vs. Access How inherited base class members appear in derived class Base class members private private: x x is inaccessible base class private: y public: z private: z protected x is inaccessible private: x base class public: z protected: z public x is inaccessible private: x base class public: z public: z"
},
{
"page_index": 308,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_026.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_026.png",
"page_index": 308,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:44:17+07:00"
},
"raw_text": "Inheritance vs. Access Base-class Type of inheritance member- access public protected private specifier inheritance inheritance inheritance pub1ic in derived class protected in derived class. private in derived class D!Lqnd Can be accessed directly Can be accessed directly Can be accessed directly by member functions, by member functions and by member functions and friend functions and friend functions. friend functions. nonmember functions protected in derived class protected in derived class. private in derived class Can be accessed directly Can be accessed directly Can be accessed directly by member functions and by member functions and by member functions and friend functions. friend functions. friend functions Hidden in derived class Hidden in derived class Hidden in derived class Can be accessed by member Can be accessed by member Can be accessed by member prrrrre functions and friend functions and friend functions and friend functions through pub1ic functions through pub1ic functions through pub1i c or protected member or protected member or protected member functions of the base class functions of the base class functions of the base class"
},
{
"page_index": 309,
"chapter_num": 9,
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_027.png",
"metadata": {
"doc_type": "slide",
"course_id": "CO1027",
"source_file": "/workspace/data/converted/CO1027_Programming_Fundamentals/Chapter_9/slide_027.png",
"page_index": 309,
"language": "en",
"ocr_engine": "PaddleOCR 3.2",
"extractor_version": "1.0.0",
"timestamp": "2025-10-30T21:44:22+07:00"
},
"raw_text": "S ummarise Operator overloading Friendship Inheritance 27"
}
]
}