Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Tài Liệu Phổ Thông
Sáng kiến kinh nghiệm
Lecture Introduction to computer and programming - Lecture No 6
tailieunhanh - Lecture Introduction to computer and programming - Lecture No 6
This lesson looks at the processors most commonly found in personal computers and describes some of their most important features and distinguishing characteristics. You w ill learn how these CPUs arc typically differentiated from one another and sec how their performance is measured. You also w ill learn some of the ways you can extend the power of your PC’s processor to other components by using its expansion capabilities. | CSC103: Introduction to Computer and Programming Lecture No 6 Previous lecture Escape sequences C compiler Directives Common errors Today’s lecture outline C character set Basic constants and variables Output function – printf Input function – scanf C instructions Integer to float conversion Hierarchy of operator Control instructions Learning C/C++ 4 C Character Set 5 Constants An entity that doesn’t change 6 Integer Constants Must have at least one digit It must not have a decimal point It can be either positive or negative If there is no sign an integer constant is assumed to be positive No commas or blanks are allowed within an integer constant Examples: 135, -67, 3401, -5670 7 Real Constants Also called Floating Point constants A real constant must have at least one digit It must have a decimal point It could be either positive or negative Default sign is positive No commas or blanks are allowed within a real constant Examples: +, , , 8 Character Constants A character constant is a single alphabet a single digit or a single special symbol Enclosed within single inverted commas Both the inverted commas should point to the left The maximum length can be 1 character Examples: ’A’, ‘I’, ‘5’, ‘=‘ 9 Variables An entity that may vary during program execution Names given to locations in memory 10 Variables Series of characters (letters, digits, underscores) Must begin with a letter or underscore Case sensitive Meaningful naming scheme 11 Variables No commas or blanks are allowed within a variable name. No Special symbol are used in name. Examples: Interger1, Sum, _FirstNum Invalid variable names #sum, 12x, first name 12 Keywords Meaning already explained to compiler Cannot be used as variable name 13 Writing C/C++ Programs Instructions as statements Order of statements Each statement must end with a ; Blanks for readability or clarity Case-Sensitive 14 Gross salary C Program Go to program 15 Variable declaration Any variable used in the . | CSC103: Introduction to Computer and Programming Lecture No 6 Previous lecture Escape sequences C compiler Directives Common errors Today’s lecture outline C character set Basic constants and variables Output function – printf Input function – scanf C instructions Integer to float conversion Hierarchy of operator Control instructions Learning C/C++ 4 C Character Set 5 Constants An entity that doesn’t change 6 Integer Constants Must have at least one digit It must not have a decimal point It can be either positive or negative If there is no sign an integer constant is assumed to be positive No commas or blanks are allowed within an integer constant Examples: 135, -67, 3401, -5670 7 Real Constants Also called Floating Point constants A real constant must have at least one digit It must have a decimal point It could be either positive or negative Default sign is positive No commas or blanks are allowed within a real constant Examples: +, , , 8 Character .
Ngọc Lan
70
1
pptx
Báo lỗi
Trùng lắp nội dung
Văn hóa đồi trụy
Phản động
Bản quyền
File lỗi
Khác
Upload
Tải xuống
đang nạp các trang xem trước
Bấm vào đây để xem trước nội dung
Tải xuống
TÀI LIỆU LIÊN QUAN
Pro PHP and iQuery
401
104
0
Principles of Programming Languages
166
128
0
Lecture Programming languages (2/e): Chapter 12b - Tucker, Noonan
14
98
0
Discovering Computers - Chapter 13: Programming Languages and Program Development
51
100
0
Beginning Algorithms
591
111
0
PHP Game Programming
377
114
0
LAND OF LISP
508
81
0
Lecture Programming languages (2/e): Chapter 14a - Tucker, Noonan
18
86
0
Lecture Programming languages (2/e): Chapter 15a - Tucker, Noonan
20
86
0
Lecture Programming languages (2/e): Chapter 12d - Tucker, Noonan
38
92
0
TÀI LIỆU XEM NHIỀU
Một Case Về Hematology (1)
8
461880
55
Giới thiệu :Lập trình mã nguồn mở
14
22702
61
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10903
530
Câu hỏi và đáp án bài tập tình huống Quản trị học
14
10075
446
Phân tích và làm rõ ý kiến sau: “Bài thơ Tự tình II vừa nói lên bi kịch duyên phận vừa cho thấy khát vọng sống, khát vọng hạnh phúc của Hồ Xuân Hương”
3
9539
104
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8298
1126
Tiểu luận: Nội dung tư tưởng Hồ Chí Minh về đạo đức
16
8245
423
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7867
2220
Đề tài: Dự án kinh doanh thời trang quần áo nữ
17
6704
253
Vật lý hạt cơ bản (1)
29
5780
85
TỪ KHÓA LIÊN QUAN
Sáng kiến kinh nghiệm
Programming languages
Computing systems
C programming language
Introduction to computer
Operating system software
Introduction to computer
experience in programming
software engineering
programming languages
computer programming
programming tips
programming experience
code programming
design tips
programming documentation
programming skills
the Ruby programming document
methods Ruby programming language
Lecture Programming languages
Ngôn ngữ lập trình
Imperative programming
Imperative languages
Dynamic allocation
Discovering Computers
Program Development
Low Level Languages
Procedural Languages
Object Oriented Programming Languages
java programming language C + +
C programming
computer software
computer engineering
computer programming language PHP
Functional programming
Functional programming models
Lambda calculus
Logic programming
Logic programming in prolog
Prolog program elements
Scripting languages
Lecture Introduction to computing
Bài giảng Nhập môn máy tính
Introduction to computing
Role of programming languages
Android Programming
Java
programming code
Procedural abstraction
Data structures
Matrix multiplication
Object oriented programming
Abstract data types
The object model
Object oriented language
Represent polynomials
Symbolic differentiation
Mixed language
Scripting language
Semantics of clite
List comprehensions
Practical aspects of prolog
Natural language processing
Event driven programming
Event driven control
Event handling
Java applet
Tic Tac Toe
TÀI LIỆU MỚI ĐĂNG
CẤU TẠO HẠT NHÂN NGUYÊN TỬ-ĐỘ HỤT KHỐI-NĂNG LƯỢNG LIÊN KẾT-LK RIÊNG
12
270
0
30-04-2024
Báo cáo nghiên cứu khoa học " KẾT QUẢ NGHIÊN CỨU BƯỚC ĐẦU VỀ THIÊN ĐỊCH CHÂN KHỚP TRÊN CÂY THANH TRÀ Ở THỪA THIÊN HUẾ "
7
175
0
30-04-2024
Posted prices versus bargaining in markets_7
23
157
0
30-04-2024
MÔN HỌC VẬT LIỆU VÀ CÔNG NGHỆ KIM LOẠI - PHẦN I: KIM LOẠI HỌC
32
179
2
30-04-2024
Đóng mới oto 8 chỗ ngồi part 9
10
118
0
30-04-2024
Giáo trình CẤU TRÚC DỮ LIỆU VÀ GIẢI THUẬT - Chương 1
5
127
0
30-04-2024
báo cáo hóa học:" Endoscopic decompression for intraforaminal and extraforaminal nerve root compression"
7
107
0
30-04-2024
Kỹ thuật nuôi cá rồng part 5
7
128
0
30-04-2024
Báo cáo khoa học: " Principaux critères économiques de gestion des forêts : analyse critique et comparative"
29
89
0
30-04-2024
Bảng màu theo chữ cái – V
11
101
0
30-04-2024
TÀI LIỆU HOT
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7867
2220
Giáo trình Tư tưởng Hồ Chí Minh - Mạch Quang Thắng (Dành cho bậc ĐH - Không chuyên ngành Lý luận chính trị)
152
5775
1386
Ebook Chào con ba mẹ đã sẵn sàng
112
3772
1232
Ebook Tuyển tập đề bài và bài văn nghị luận xã hội: Phần 1
62
5331
1136
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8298
1126
Giáo trình Văn hóa kinh doanh - PGS.TS. Dương Thị Liễu
561
3515
644
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10903
530
Giáo trình Sinh lí học trẻ em: Phần 1 - TS Lê Thanh Vân
122
3692
525
Giáo trình Pháp luật đại cương: Phần 1 - NXB ĐH Sư Phạm
274
4070
516
Bài tập nhóm quản lý dự án: Dự án xây dựng quán cafe
35
4135
480
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.