TAILIEUCHUNG - Lecture Visual programming: Chapter 4 - Muhammad Bilal Zafar
This chapter presents the following content: Programming language generations, modeling in compiler design, code optimization, science of building a compiler, applications of compilers, programming language basics, static/dynamic distinction, environment and states, variables & scope, structures & functions. | LESSON 03 1 Overview of Previous Lesson(s) 2 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 automation tools and a debugger. 3 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. 4 Over View C++ Keywords Reserved words int, main, class, define Identifiers Programmers defined variables Operators Used to perform different types of operations on data Punctuation , ; Variables A named storage location in the computer’s memory for holding a piece of data. 5 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 6 Parts of Program // sample C++ program Comment #include Pre processor directive using namespace std; Which namespace to use int main() Main function beginning { beginning of block for main cout << "Hello, there!"; return 0; } ending of block for main 7 TODAY’S LESSON 8 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. << is called the insertion operator. 9 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
đang nạp các trang xem trước