« Home « Chủ đề tài liệu C

Chủ đề : tài liệu C


Có 74+ tài liệu thuộc chủ đề "tài liệu C"

File Input and Output

tailieu.vn

The file is a stream of characters or a flow of related data. This chapter introduces the concept of the file input and output operations. It explains the process of reading and writing in the text files and the binary files. Implement the file input and output operations Implement read and write in text files. The file is a collection...

Giáo trình Exception Handling

tailieu.vn

Exception Handling Ch. An exception is termed as an abnormal condition encountered by an application during execution.. ¤NIIT Exception Handling 10.3. An exception is an erroneous situation that occurs during program execution. When an exception occurs in an application, the system throws an error. For example, the System.IO.IOException error is thrown when you try to access an illegal stream object....

Introduction to the Object-Oriented Approach

tailieu.vn

Introduction to the Object-Oriented. Object-Oriented Programming (OOP) is one of the most popular methodologies in software development. This chapter introduces object-oriented methodology and discusses the concepts of objects, classes, messages, and methods. It provides an overview of the phases involved in object-oriented analysis and design. Explain features of the object-oriented methodology. Describe the phases of the object-oriented methodology. An object...

Creating Multithreaded Applications

tailieu.vn

Define the life cycle of a thread Implement multiple threads Identify the thread priority Use synchronization in threads. The Thread Model. This results in the wastage of the CPU time.. In a single-threaded application if the thread is suspended from execution because it is waiting for a system resource, the entire program stops executing. In C#, you will use the...

Creating Objects

tailieu.vn

A variable is a location in the memory that has a name and contains a value. The following rules are used for naming variables in C#:. The following are examples of valid variable names:. The following are examples of invalid variable names:. You can declare and initialize variables by using the following syntax:. In the preceding syntax, the <data_type>. Consider...

Delegates and Events

tailieu.vn

The method can be activated at the occurrence of an event, where an event is associated with the delegate to call the method at run-time.. Delegates in C# allow you to dynamically change the reference to the methods in a class.. The methods that can be referenced by a delegate are determined by the delegate declaration. The delegate can refer...

Operators and Programming Constructs

tailieu.vn

Consider the following expression:. The following table explains the usage of the increment and decrement operators.. If the initial value of X is 5, after the execution of the preceding statement, values of both X and Y will be 6.. If the initial value of X is 5, after the execution of the preceding statement, value of X will be...

Attributes and Reflection

tailieu.vn

This chapter discusses attribute syntax, and how to use some of the predefined attributes. incorporated as a part of the runtime and .NET Framework Software Development Kit (SDK).. Attributes are applied to different elements of the code. Information about attributes is stored with the metadata of the elements they are associated with.. The following syntax enables you to specify an...

Encapsulation and Abstraction

tailieu.vn

Consider the following example:. For example, when you plug in the cord of the vacuum cleaner and turn on the switch, the vacuum cleaner starts. In other words, the exact working of the cleaner has been encapsulated. Therefore, encapsulation is also explained as information hiding or data hiding because it involves hiding many of the important details of an object...

Introduction to .NET Framework

tailieu.vn

Introduction to .NET. The .NET Framework enables you to create robust and scalable applications. The .NET Framework consists of Common Language Runtime, Common Language Specification, and the Just-In-Time compiler.. Before you can use Visual Studio .NET for creating a console-based application, you need to understand the .NET Framework and the Visual Studio .NET Integrated Development Environment.. This chapter introduces the...

Creating Value Types and Reference Types

tailieu.vn

However, both the variables contain different copies of the value 50 . Num2 contains the copy of the data in Num1 Num1. The following figure is a diagrammatic representation of the memory allocated to the value type variable.. The object Mercedes of the class Car is initialized with Ford , which is also an object of the same class. Console.WriteLine...

Constructors and Destructors

tailieu.vn

Constructors and. Constructors are used to initialize objects. Conversely, you can use destructors to delete an object when it is not required.. destructors help in identifying the life cycle of the object.. Identify the life cycle of an object. A constructor is a special type of method that is invoked when you create a new instance of a class. A...

Polymorphism

tailieu.vn

One approach can be to have two functions of different names, as shown in the following code:. You can have two functions with the same name but with different parameters, as shown in the following code:. The following code is an example showing the usage of operator. Virtual functions: Are the functions that do not really exist, however, appear to...

KỸ THUẬT LẬP TRÌNH Yêu cầu môn học: • Nắm vững ngôn ngữ lập trình C •

tailieu.vn

Nắm vững ngôn ngữ lập trình C. Làm Bài tập lớn: Thực hiện thiết kế, xây dựng chương trình để giải quyết một bài toán cụ thể (làm việc theo nhóm, mỗi nhóm từ 3 đến 5 sinh viên). Trình bày quá trình phát triển chương trình theo phương pháp tinh chỉnh dần.. Khởi đầu, điểm của tất cả các...