... 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 ... floating point numbers– Declare variables with name and data type before useint integer1;int integer2;int sum;– Can declare several variables of same type in one declaration• Comma-separated l...
... 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...
... common mathematical calculations– Include the header file <cmath>• Functions called by writing– functionName(argument1, argument2, …);•Examplecout << sqrt( 900.0 );– sqrt (square root) ... greater than x floor( 9.2 ) is 9.0 floor( -9.8 ) is -10.0 fmod( x, y ) rem ainder of x/y as a floating-point number fmod( 13.657, 2.333 ) is 1.992 log( x ) natural logarithm of x (base e) log( 2...
... specifies const object
2003 Prentice Hall, Inc. All rights reserved.18Sorting Arrays• Sorting data– Important computing application– Virtually every organization must sort some data • Massive ... Prentice Hall, Inc. All rights reserved.3Arrays• Array elements like other variables– Assignment, printing for an integer array cc[ 0 ] = 3;cout << c[ 0 ];• Can perform operations inside subsc...
... 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 is:print characters of a string
2003 Prentice Hall, Inc.All rights reserved.122 // Attempting to modify data through a3 // non-constant pointer to constant data.5 void f( const int ... declared...
... 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 /Control panel /Mouse ♦ Cài đặt chương trình: ... trên một tập tin văn bản Nhóm biểu tượng cho phép thao tác trên một tập tin văn bản V.1. Tạo một văn bản mới - Chọn File / New hoặc Click trên biểu tượng New Tên của một tập tin văn bản ... hộp...
... 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...
... thông tin, chúng tôi biên soạn cuốn giáo trình này,cung cấp kiến thức và hướng dẫn sử dụng công cụ ấy một cách hiệu quả .Giáo trình Tin học cơ bản” được xây dựng dựa trên nền tảng của giáotrình ... cung cấp với mục đích làphổ cập tin học cơ bản cho người dân. Giáo trình dựa trên nội dung đó và đãđược biên tập cho phù hợp với học viên Việt Nam .Học xong giáo trình này...