Giáo trình tin học chương IV
... Prentice Hall, Inc. All rights reserved.18Sorting Arrays• Sorting data– Important computing application– Virtually every organization must sort some data • Massive amounts must be sorted• Bubble sort ... Array– Structures of related data items– Static entity (same size throughout program)– Consecutive group of memory locations – Same name and type (int, char, etc.)• To refer to an element– Sp...
Ngày tải lên: 22/08/2012, 10:13
... classes and functions• C++ standard library– Rich collections of existing classes and functions• “Building block approach” to creating programs– “Software reuse” 2003 Prentice Hall, Inc. All rights ... Simple Program:Printing a Line of Text• Comments– Document programs– Improve program readability– Ignored by compiler– Single-line comment• Begin with //• Preprocessor directives– Processed by...
Ngày tải lên: 22/08/2012, 10:12
... Formulating Algorithms: Case Study 1 (Counter-Controlled Repetition) Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 2 (Sentinel-Controlled Repetition) Formulating Algorithms ... number of students– How will program know when to end?• Sentinel value– Indicates “end of data entry”– Loop ends when sentinel input– Sentinel chosen so it cannot be confused with regular inpu...
Ngày tải lên: 22/08/2012, 10:12
Giáo trình tin học chương III
... Overloading3.21 Function Templates 2003 Prentice Hall, Inc. All rights reserved.33.1 Introduction• Divide and conquer – Construct a program from smaller pieces or components– Each piece more manageable ... common mathematical calculations– Include the header file <cmath>• Functions called by writing– functionName(argument1, argument2, …);•Examplecout << sqrt( 900.0 );– sqrt (squa...
Ngày tải lên: 22/08/2012, 10:12
Giáo trình tin học Chương V
... be modified– const used when function does not need to change a variable• Principle of least privilege– Award function enough access to accomplish task, but no more• Four ways to pass pointer ... after conversion is: CHARACTERS AND $32.98 2003 Prentice Hall, Inc.All rights reserved.112 // Printing a string one character at a time using3 // a non-constant pointer to constant data.4 ... string...
Ngày tải lên: 22/08/2012, 10:13
Giáo trình tin học chương 5
... be modified – const used when function does not need to change a variable • Principle of least privilege – Award function enough access to accomplish task, but no more • Four ways to pass pointer ... conversion is: CHARACTERS AND $32.98 2003 Prentice Hall, Inc. All rights reserved. 11 2 // Printing a string one character at a time using 3 // a non-constant pointer to constant data. 4 #inclu...
Ngày tải lên: 06/09/2013, 10:54
Giáo trình tin học đại cương
... đường dẫn đến file chương trình cần tạo ShortCut (Hoặc bấm vào mục Browse để tìm kiếm chương trình trên đĩa) Caïc thao taïc càn baín trong Windows - Nguyãùn Hæîu Taìi Trang 8 IV. Control Panel ... Hæîu Taìi Trang 11 IV. 3. Cài đặt/ gỡ bỏ chương trình trong máy tính ( Add/Remove Programs) Để làm xuất hiện hộp thoại Add/Remove Programs ta thục hiện các lệnh sau: Start / Settings...
Ngày tải lên: 23/08/2012, 10:08
Giáo trình tin học căn bản
... lỉu táûp tin âọ v xoạ âi âãø tảo lải táûp tin måïi. k. Lãûnh COPY: Dng âãø sao chẹp táûp tin âãún thỉ mủc khạc v cäng dủng thỉï hai dng âãø näúi hai táûp tin â täưn tải thnh mäüt táûp tin thỉï ... âỉïng tải äø âéa C: C:\> Copy C:\Tinhoc\bt1.txt + C:\Tinhoc\bt2.txt C:\Tinhoc\bt3.txt < Enter > 2. Trỉåìng håüp ta âang âỉïng tải thỉ mủc C:\Tinhoc: C:\Tinhoc> Copy bt1.txt + b...
Ngày tải lên: 23/08/2012, 10:33
Giáo trình tin học văn phòng
... Ctrl+Drag kéo sang bên cạnh để copy). 56 Hoàng Vũ Luân TRƯỜNG ĐẠI HỌC SƯ PHẠM HUẾ TRUNG TÂM TIN HỌC HOÀNG VŨ LUÂN GIÁO TRÌNH Tin học văn phòng HUẾ – 2005 BIÏ ÍU À ÖÌ LÛ Ú NG 0 100000 200000 300000 400000 500000 An ... mảng 2 chiều, tổ chức thành hàng và cột. Mỗi hàng chứa thông tin về một đối tượng được gọi là một mẫu tin (record), mỗi cột chứa thông tin phản ánh thuộc tính ch...
Ngày tải lên: 30/08/2012, 08:54