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 7 0

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

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 10
Dung lượng 215,56 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

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

Trang 1

LESSON 05

Trang 2

Overview

of Previous Lesson(s)

Trang 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

3

Trang 4

Over View

Ø 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.

4

Trang 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()

5

Trang 6

Over View

Ø Looping structures

Ø For loop

Ø While

Ø Do While

Ø Decision structures

Ø If

Ø If / else

Ø Switch

6

Trang 7

TODAY’S LESSON

7

Trang 8

Ø Operator Precedence

Ø Type Conversion and Casting

Ø Auto Keyword

Ø Discovering Types

Ø Bitwise Operators

Ø L Values and R Values

Ø Storage Duration

Ø Variable Scopes

Ø Static Variables

Ø Namespaces

8

Trang 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

9

Trang 10

Operator Precedence

evaluate in this order:

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

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

Example expression 2 + 2 * 2 – 2

evaluate first

evaluate second

evaluate third

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

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

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w