1. Trang chủ
  2. » Giáo Dục - Đào Tạo

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

10 10 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 282,79 KB

Nội dung

Ø The identifier cout (pronounced “C out”) is actually an object. Ø It is predefined in C++ to correspond to the standard output[r]

(1)(2)

Overview of

Previous Lesson(s)

(3)

Over View

Ø IDE

Ø An IDE or interactive development environment is a software

application that provides comprehensive facilities to computer programmers for software development

Ø An IDE normally consists of a source code editor, build

(4)

Over View

Ø Microsoft Visual Studio is an integrated development

environment (IDE) from Microsoft Corporation

Ø It is used to develop console and graphical applications along

with Windows Forms, Websites in both native code and with managed code

Ø It is supported by Microsoft Windows, Win Mobile, Win

CE, NET Framework

(5)

Over View…

Ø C++

Ø Keywords Reserved words int, main, class, define

Ø Identifiers Programmers defined variables

Ø Operators Used to perform different types of operations on

data

(6)

Over View…

Ø C++

Ø 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

Ø Steps performed by a program

Ø Take the input Ø Process the data Ø Produce the output

(7)

Parts of Program

// sample C++ program Comment

#include <iostream> Pre processor directive

using namespace std; Which namespace to use

int main() Main function beginning

{ beginning of block for main

(8)

TODAY’S LESSON

(9)

Cout Object

Ø The identifier cout (pronounced “C out”) is actually an object Ø It is predefined in C++ to correspond to the standard output

stream in IOSTREAM File

Ø The standard output stream normally flows to the screen

display—although it can be redirected to other output devices

(10)

Cin Object

Ø The identifier cin (pronounced “C in”) is actually an object Ø It is predefined in C++ to correspond to the standard input

stream in IOSTREAM File

Ø This stream represents data coming from the keyboard

unless it is redirected

Ø << is also called the extraction operator

Ngày đăng: 01/04/2021, 19:05

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

TÀI LIỆU LIÊN QUAN

w