« Home « Chủ đề thủ thuật lập trình C

Chủ đề : thủ thuật lập trình C


Có 72+ tài liệu thuộc chủ đề "thủ thuật lập trình C"

Lập trình ứng dụng nâng cao (phần 3)

tailieu.vn

Passing Parameters | 83 In the second part of the example, a Font object is created outside the using state- ment. (See the section “Method Arguments,” earlier in this chapter.) This means that when a value object is passed to a method, a temporary copy of the object is created within that method. First, change the parameters of the GetTime....

Lập trình ứng dụng nâng cao (phần 4)

tailieu.vn

When a class implements an interface, it tells any potential client “I guarantee I’ll support all the methods, properties, events, and indexers of the named interface.”. The interface keyword is followed by the name of the interface. This seemed like a good metaphor to some of the object-oriented pioneers from nearby MIT who were working on the for- tuitously named...

Lập trình ứng dụng nâng cao (phần 5)

tailieu.vn

you create an instance of the ListBoxTest class named lbt and pass in two strings as parameters:. Console.WriteLine("lbt[{0. which is a helper method that returns a record based on the value of the string pro- vided. add a single string to the end of the listbox public void Add(string theString). The big change in this version of the program is...

Lập trình ứng dụng nâng cao (phần 6)

tailieu.vn

Console.WriteLine sBuilder);. using System.Text;. Console.WriteLine("theMatch theMatch.ToString(. The length property is the length of the captured substring, and I discuss it in the section “Using CaptureCollection” later in this chapter.. It is often convenient to group subexpression matches together so that you can parse out pieces of the matching string. Example 10-8 illustrates the creation and use of the Groups collection...

Lập trình ứng dụng nâng cao (phần 7)

tailieu.vn

where T is the type of the result object. In this example, because the query result is a set of Customer objects, the type of the result variable is IEnumerable<Customer>. the C# com- piler can infer the type of the range variable from the data source. In this example, because the type of the data source is List<Customer>. This portion...

Lập trình ứng dụng nâng cao (phần 9)

tailieu.vn

This code uses the rich Web Forms types found in the System.Web and System.Web.UI namespaces of the .NET FCL, and the System.Web.Extension namespace in Microsoft ASP.NET AJAX.. Typically, the client will not be in the same building as the server. Event handlers are written in C#, and are associated with controls in the HTML page through control attributes.. A web...

Lập trình ứng dụng nâng cao (phần 10)

tailieu.vn

private void btnClear_Click( object sender, System.EventArgs e. Creating the Application | 433 private void btnCopy_Click (object sender, System.EventArgs e). To get the selected filenames, you can walk through the source TreeView control:. If it is a File , you can add it to the new ArrayList. You can call its Sort. With that done, you can return fileList to the...

Lập trình ứng dụng nâng cao (phần 11)

tailieu.vn

The .NET Framework provides extensive support for serial- ization, and the final part of this chapter walks you through the details of taking control of the serialization of your object.. All the methods of the Directory class are static. therefore, you can call them all without having an instance of the class.. Table 22-1 lists the principal methods of the...

Lập trình ứng dụng nâng cao (phần 12)

tailieu.vn

method, passing in the stream and the object to serialize. using System.Collections.Generic;. using System.IO;. using System.Runtime.Serialization;. using System.Runtime.Serialization.Formatters.Binary;. using System.Text;. For this purpose, the .NET Framework offers isolated storage.. using System.IO.IsolatedStorage;. System.DateTime currentTime = System.DateTime.Now;. Programming .NET and COM 23. Rename it Calculator in the Properties window. Figure 23-1. Figure 23-2. Figure 23-3. Locating CalcControl in the VB 6 toolbox....

Lập trình ứng dụng nâng cao (phần 13)

tailieu.vn

Rank property, System.Array, 158 Rapid Application Development (RAD). Replace() method, StringBuilder, 227 Resize() method, System.Array, 158 resources. System.Array, 158, 175 root element, XML, 303, 307 Root property, DirectoryInfo, 489 Rows collection, ADO.NET, 373 rows, relational database, 369 runat=Server attribute, 391. set() method, for indexers, 180 SetAttributes() method, File, 492 SetCreationTime() method, File, 492 SetLastAccessTime() method, File, 492 SetLastWriteTime() method, File,...

Lập trình C trên Windows (phần 1)

tailieu.vn

Lập trình C trên Windows Các khái niệm cơ bản. Khoa CNTT – ĐH.KHTN.Tp.HCM Email: nttuan@ fit.hcmuns.edu.vn. Các thư viện lập trình của Windows. Các loại ứng dụng. Lập trình sự kiện (Event driven programming). C4W - Basic - Nguyen Tri Tuan - DH.KHTN Tp.HCM 3. Ứng dụng 16 bits Hỗ trợ 32 bits hay hơn nữa. Phải dùng các...

Lập trình C trên Windows (phần 2)

tailieu.vn

C4W - Basic - Nguyen Tri Tuan - DH.KHTN Tp.HCM 21. Lớp cửa sổ (window class):. Là một loại cửa sổ với những tính chất xác định. Mỗi lớp cửa sổ được đặc trưng bằng 1 tên (class-name) dạng chuỗi. và một tập các thuộc tính mà HĐH Windows sử dụng làm khuôn mẫu (template) khi tạo lập 1 cửa...