- •Vasyl Yatskiv,
- •Content
- •Introduction
- •1. Theory
- •1.1. Arithmetic Operators
- •1.2. Relational Operators
- •1.3. Logical Operators
- •1.4. Increment/Decrement Operators
- •1.6. Conditional Operator
- •1.7. Comma Operator
- •1.5. Assignment Operator
- •1.8. The sizeof Operator
- •1.9. Operator Precedence
- •1.10. Simple Type Conversion
- •2. Lab Overview
- •3. Report Structure
- •4. Control Exercises
- •5. References
- •Lab #2. Control structures
- •1. Theory
- •1.1. Simple and Compound Statements
- •1.2. The if Statement
- •1.3. The switch Statement
- •1.4. The while Statement
- •1.5. The do Statement
- •1.6. The for Statement
- •1.7. The continue Statement
- •1.8. The break Statement
- •1.9. The goto Statement
- •1.10. The return Statement
- •2. Lab Overview
- •3. Report Structure
- •4. Control Exercises
- •5. References
- •1. Theory
- •1.1. A Simple Function
- •1.2. Parameters and Arguments
- •1.3. Global and Local Scope
- •1.4. Scope Operator
- •1.5. Symbolic Constants
- •1.6. Inline Functions
- •1.7. Recursion
- •1.8. Default Arguments
- •2. Lab Overview
- •3. Report Structure
- •4. Control Exercises
- •5. References
- •Lab #4. Arrays, pointers, references and dynamic variables
- •1. Theory
- •1.1 Arrays
- •1.2 Multidimensional Arrays
- •1.3 Pointers
- •1.4 Dynamic Memory
- •1.5 Pointer Arithmetic
- •1.6 References
- •2. Lab Overview
- •3. Report Structure
- •4. Control Exercises
- •5. References
- •Lab #5. Structures
- •1. Theory
- •1.1 Introducing Structures
- •1.2 Using a Structure in a Program
- •1.3 Program Notes
- •1.4 Other Structure Properties
- •1.5 Arrays of Structures
- •2. Lab Overview
- •3. Report Structure
- •4. Control Exercises
- •5. References
- •Lab #6. Strings
- •1. Theory
- •1.1. Introduction to Strings
- •1.2. Concatenating String Constants
- •1.3. Using Strings in an Array
- •1.4. Reading String Input a Line at a Time
- •1.5. Line-Oriented Input with gets()
- •1.6. Introducing the string Class
- •1.7. Assignment, Concatenation, and Appending
- •1.8. More string Class Operations
- •1.9. More on string Class I/o
- •2. Lab Overview
- •3. Report Structure
- •4. Control Questions
- •5. References
- •Annex a Report’s Title Page
- •From discipline “Algorithmization and Programming” Topic: _______________________________________________
3. Report Structure
Title page
Task overview
Algorithm’s flowchart
Program code
Program running screenshots
Conclusions
4. Control Questions
4.1. What is a string?
4.2. What is ‘\0’ symbol?
4.3. How may we declare a string?
4.4. How to access string items?
4.5. How to read one word?
4.6. How to read a text line?
4.7. Describe the function getline.
4.8. Describe the function gets.
4.9. What is the class “string”?
4.10. Concatenation of strings.
4.11. Appending to a string.
5. References
5.1. Juan Soulié. C++ Language Tutorial. – 2007. – p. 60-62.
5.2. Sharam Hekmat. C++ Essentials. – PragSoft Corporation 2005. – p. 13-14.
5.3. Prata S. C++ Primer Plus (5th Edition). – Sams, 2004. – p. 114-130.
Annex a Report’s Title Page
MINISTRY OF EDUCATION AND SCIENCE, YOUTH AND SPORT OF UKRAINE
TERNOPIL NATIONAL ECONOMIC UNIVERSITY
FACULTY OF COMPUTER INFORMATION TECHNOLOGIES
AMERICAN-UKRAINIAN SCHOOL OF COMPUTER SCIENCE
REPORT
on Lab#__
From discipline “Algorithmization and Programming” Topic: _______________________________________________
Performed by student of group CSUAP-11
_________________________________
Checked by Dr. Ihor Paliy
Ternopil – 2012
Підписано до друку 22.06.2012р.
Формат 60х84/16. Папір офсетний.
Друк на дублікаторі. Зам. № 6-1984
Умов.-друк. арк. 2,56. Обл.-вид. арк. 2,76.
Тираж 50 прим.
Віддруковано ФО-П Шпак В.Б.
Свідоцтво про державну реєстрацію: В02 № 924434 від 11.12.2006 р.
Свідоцтво платника податку: Серія Е № 897220
м. Тернопіль, вул. Просвіти, 6
тел. 097 299 38 99, 063 300 86 72
E-mail: tooums@ukr.net
