TAILIEUCHUNG - Lecture Computing for management - Chapter 24

Lecture 24 - The C programming. After studying this chapter you will be able to understand: Algorithms and programs, a C programming language, history of C, how to get started with C, basic Structure of a C program, data storage and data types, printf() and scanf() functions and usage precedence, unary operations, increment and decrement operations. | The C Programming Lecture 24 Summary of Previous Lecture Programming in real life. Introduction What is Problem Solving? Problem Solving process. Algorithm History Working Definition Examples Algorithms to Programs Summary of Previous Lecture Components of Algorithms Variables and values Instructions Sequences Procedures Selections Repetitions Documentation Software Development Process Top Down Algorithm Design Today’s Lecture Algorithms and Programs A C programming language History of C C, A High level language How to get started with C. Basic Structure of a C program Data Storage and Data Types Variables, Keywords, identifiers, Assignment Today’s Lecture constant variable printf() and scanf() functions and usage Precedence int and float Unary operations Increment and decrement operations Today’s Lecture Comments Error and its Types Summary From Algorithms to Programs Both are sets of instructions on how to do a task Algorithm: talking to humans, easy to understand in plain (English) language Program: talking to computer (compiler) can be regarded as a “formal expression” of an algorithm A C Programming Language Flexible language: Structured language Low level activities possible It can produce lean and efficient code Wide availability on a variety of computers Widely used! History of C CPL Combined Programming Language (Barron et al., 1963) BCPL Basic CPL (Richards, 1969) B (Thompson, 1970) C K&R C (Ritchie, 1972) ANSI C American National Standards Institute C (X3J11, 1989) C99 (JTC1/SC22/WG14, ISO/IEC 9899, 1999) A High-Level Language Compilers and linkers translate a high level program into executable machine code. #include int main() { printf(“Hello World”); return 0; } Source code Executable code 10100110 01110110 00100110 00000000 11111010 11111010 01001110 10100110 11100110 10010110 11001110 00101110 10100110 01001110 11111010 01100110 01001110 10000110 etc. How to get started? Download Turbo C++ Version a free software. .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.