tailieunhanh - Lecture Visual programming: Chapter 10 - Muhammad Bilal Zafar

This chapter presents the following content: Recognition of tokens, transition diagrams, recognition of reserved words and identifiers, recognizing whitespace, recognizing numbers, finite automata, NFA, transition tables. | LESSON 10 Overview of Previous Lesson(s) Over View .NET Framework is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large library and provides language interoperability across several programming languages 3 Over View Programs written for the .NET Framework execute in a software environment, known as the CLR, an application virtual machine that provides services such as security, memory management, and exception handling. The class library and the CLR together constitute the .NET Framework. 4 Over View A pointer is a variable that stores the address of another variable of a particular type. long *pnum; //convention in C++ For getting the address & operator is used. This is a unary operator that obtains the address of a variable. It ’ s also called the reference operator. long number = 200; long* pnumber; pnumber = &number; 5 Over View 6 Operator & can be used to obtain the address of any variable, but you need a pointer of the . | LESSON 10 Overview of Previous Lesson(s) Over View .NET Framework is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large library and provides language interoperability across several programming languages 3 Over View Programs written for the .NET Framework execute in a software environment, known as the CLR, an application virtual machine that provides services such as security, memory management, and exception handling. The class library and the CLR together constitute the .NET Framework. 4 Over View A pointer is a variable that stores the address of another variable of a particular type. long *pnum; //convention in C++ For getting the address & operator is used. This is a unary operator that obtains the address of a variable. It ’ s also called the reference operator. long number = 200; long* pnumber; pnumber = &number; 5 Over View 6 Operator & can be used to obtain the address of any variable, but you need a pointer of the appropriate type to store it. Class 7 A class is a specification of a data type that you define. A class combines both the definition of the elementary data that makes up an object and the means of manipulating the data that belongs to individual objects of the class (functions). Over View 8 CBox data type using the keyword class is defined as follows: class CBox { public: double m_Length; // Length of a box in inches double m_Width; // Width of a box in inches double m_Height; // Height of a box in inches double Volume() { return m_Length*m_Width*m_Height; } }; Over View 9 CBox box1; // Declare box1 of type CBox CBox box2; // Declare box2 of type Cbox TODAY’S LESSON 10 Contents Class Constructor Default Constructor / Default Copy Constructor Initializer List Private Members of a Class Friend’s Functions The pointer this Destructor C++/CLI Programs C++/CLI Specific: Fundamental Data Types C++/CLI Output 11 Class Constructor 12 A class constructor is a special function in a class that

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.