tailieunhanh - Lecture note Data visualization - Chapter 7

In this chapter, the following content will be discussed: Visual perception and data visualization, types of information display, examples of diagrams used for data display, planning requirement for data visualization, benefits of data visualization. | Lecture 07 Recap Visual Perception and Data Visualization Types of Information Display Examples of Diagrams used for Data Display Planning Requirement for Data Visualization Benefits of Data Visualization Data Structures and Problems with C Pointers A pointer is an object that can be used to access another object A pointer provides indirect access rather than direct access to an object People use pointers in real-life situations all the time In C++ a pointer is an object that stores an address (., a location in memory) where other data are stored An address is expected to be an integer, so a pointer object can usually be represented internally as an (unsigned) int. Arrays and Structures An aggregate is a collection of objects stored in one unit The array is the basic mechanism for storing a collection of identically-typed objects A different type of aggregate type is the structure, which stores a collection of objects that need not be of the same type Abstract Example: consider . | Lecture 07 Recap Visual Perception and Data Visualization Types of Information Display Examples of Diagrams used for Data Display Planning Requirement for Data Visualization Benefits of Data Visualization Data Structures and Problems with C Pointers A pointer is an object that can be used to access another object A pointer provides indirect access rather than direct access to an object People use pointers in real-life situations all the time In C++ a pointer is an object that stores an address (., a location in memory) where other data are stored An address is expected to be an integer, so a pointer object can usually be represented internally as an (unsigned) int. Arrays and Structures An aggregate is a collection of objects stored in one unit The array is the basic mechanism for storing a collection of identically-typed objects A different type of aggregate type is the structure, which stores a collection of objects that need not be of the same type Abstract Example: consider the layout of an apartment building. Each floor might have a one-bedroom unit, a two-bedroom unit, a three-bedroom unit, and a laundry room. Thus each floor is stored as a structure, and the building is an array of floors. Types of Arrays In C++ arrays are declared in two basic ways Primitive method to use the built-in array Alternative method vector Syntax for both methods is more or less the same Vector is much easier and slightly safer to use than the primitive array and is preferred for most applications Vectors behave as First Class Type Primitive array behave as Second Class Type First Class versus Second Class First-class objects can be manipulated in all the “usual ways” without special cases and exceptions, whereas second-class objects can be manipulated in only certain restricted ways Usual ways include things like copying an array stores a collection of objects So, expect a copy of an array to copy the entire collection; this is not the case for the primitive array Continued .

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.