1. Trang chủ
  2. » Trung học cơ sở - phổ thông

Lecture Visual programming: Chapter 5 - Muhammad Bilal Zafar - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

10 6 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Some common data types include integers, floating point numbers, characters, strings, and arrays. 4.[r]

(1)(2)

Overview of

(3)

Over View

Ø Interactive development environment is a software application that

provides comprehensive facilities to computer programmers for software development

Ø Microsoft Visual Studio is an integrated development environment (IDE)

from Microsoft Corporation

Ø Developed on Net framework

(4)

Over View

Ø C++

Ø Keywords Reserved words int, main, class, define Ø Identifiers Programmers defined variables

Ø Variables A named storage location in the computer’s

memory for holding a piece of data

Ø Data Types When computer programs store data in variables,

each variable must be assigned a specific data type

Some common data types include integers, floating point numbers, characters, strings, and arrays

(5)

Over View

Ø Cout >> and Cin <<

Ø A namespace is a part of the program in which certain names

are recognized; outside of the namespace they’re unknown

Ø Escape Sequences /n, /t, //, /’, /” …

Ø Library Functions

Ø sqrt() Ø rand()

(6)

Over View

Ø Looping structures

Ø For loop Ø While Ø Do While

Ø Decision structures

Ø If

Ø If / else Ø Switch

(7)

TODAY’S LESSON

(8)

Contents

Ø Operator Precedence

Ø Type Conversion and Casting Ø Auto Keyword

Ø Discovering Types Ø Bitwise Operators

Ø L Values and R Values Ø Storage Duration

Ø Variable Scopes Ø Static Variables Ø Namespaces

(9)

Operator Precedence

Ø Operator precedence orders the operators in a priority

sequence

Ø In any expression, operators with the highest precedence are

always executed first, followed by operators with the next highest precedence, and so on, down to those with the lowest precedence of all

(10)

Operator Precedence

Ø In an expression with more than one operator,

evaluate in this order:

- (unary negation), in order, left to right

* / %, in order, left to right + -, in order, left to right

Example expression 2 + * –

Ngày đăng: 01/04/2021, 17:08

Xem thêm:

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w