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

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


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

Beginning Visual C++® 2005 (P1)

tailieu.vn

Manufactured in the United States of America . I’d like to acknowledge the efforts and support of the John Wiley &. Components of the System 9. Handling Multiple Data Values of the Same Type 160. Use of the const Modifier 249. Exception Handling in the MFC 283. Viewing Variables in the Edit Window 577. Serialization in the Document Class Definition...

Beginning Visual C++® 2005 (P2)

tailieu.vn

To start with, if an existing project is active — as indicated by the project name appearing in the title bar of the Visual C++ 2005 main window — you can select Close Solution from the File menu.. These are identified by the items in the list on the right of the dialog box, as Figure 1-22 shows.. You can...

Beginning Visual C++® 2005 (P3)

tailieu.vn

Although you are using the same type names as in the ISO/ANSI C++ ver- sion of the example, the effect is not the same. You can put a variable of any of the types you have seen between the parentheses following the function name and the value will be written to the command line. and the bit that determines that...

Beginning Visual C++® 2005 (P4)

tailieu.vn

Note the use of the escape character. For example, you could set the value of the element reflecting the fifth plant in the third row with the following statement:. Note the semicolon at the end of the declaration. however, the type of the variable pnumber is ‘pointer to long. Here you can see that I have initialized the pointer pnumber...

Bài tập học Lập trình C

tailieu.vn

cout<<"---\n";. cout<<"Nhap N=". <<setw(17)<<setprecision(2)<<setiosflags(ios::showpoint | ios::fixed). <<kq. cout<< lt;<endl;. //Neu 0<X<=2 thi F(x)=x*x-x. cout<<setiosflags(ios::showpoint|ios::fixed);. cout<<setprecision(2);. cout<<"tien dien: ". <<setprecision(0). cout<<"Nhap % tang K=". cout<<"\n---";. cout<<"\n---\n";. cout<<"\nNhap mang\n";. cout<<"Nhap N=";. cout<<setw(10)<<s[i];. cout <<. <<. i <<. i++)cout <<. a[i] <<. cout<<a[i]<<". cout<<endl;. "<<setw(10)<<b[i];. 0 cout<<". //vong lap i=2->n cout<<". max <<. //in ket qua cout <<. min <<. a[0] <<. a[n-1]...

Giáo trình lập hướng đối tượng

tailieu.vn

5: cout<<. 7: cout<<. 8: cout<<. 9: cout<<. <<"\n". 6: cout<<. 6: cout <<. 7: <<. BoxVolume() <<. endl <<. 8: <<. 9: <<. BoxVolume(10) <<. 10: <<. 11: <<. BoxVolume(10, 5) <<. 12: <<. 13: <<. BoxVolume(10, 5, 2)<<. <<. <<=. 22: cout <<. 24: cout <<. 26: cout <<. 10: cout <<. lt;<. Hour <<. Minute <<. 9:...

Manning Windows Forms Programming (phần 1)

tailieu.vn

1 Getting started with Windows Forms 3 2 Getting started with Visual Studio .NET 34. 9 Basic controls 263 10 List controls 314 11 More controls 353 12 A .NET assortment 383 13 Toolbars and tips 410. 18 Odds and ends .NET 603. about this book xxi acknowledgments xxviii about .NET xxx. 2 Getting started with Visual Studio .NET 34....

Manning Windows Forms Programming (phần 2)

tailieu.vn

The compiler uses the correct System.Windows.Forms.But- ton class because of the using keyword, and because the System.Web namespace is not referenced by our program.. Let’s go back to our use of the Button and PictureBox classes. Note the use of the new keyword to initialize our two fields. So typing Alt+L in the application will simulate a click of the...

Manning Windows Forms Programming (phần 3)

tailieu.vn

and to summarize what is displayed in the main window. Chapter 9 on “Basic controls” begins a systematic review of the standard Windows Forms controls available in the .NET Framework. The View menu is exposed, and a submenu of the Image menu item is displayed as well.. of the mouse. Note that context menu items can also contain submenus similar...

Manning Windows Forms Programming (phần 4)

tailieu.vn

S ET THE TEXT TO APPEAR IN THE PANELS. 1 In the menuLoad_Click method, set the ShowPanels property to false while the image is loading.. In the code shown here, the "{0. S ET THE TEXT TO APPEAR IN THE PANELS (continued). The StatusBar class uses a derived version of this class, but the bulk of the drawing information is...

Manning Windows Forms Programming (phần 5)

tailieu.vn

4 Create an empty album at the end of the MainForm constructor.. Set the version number of the MyPhotos application to 6.2.. Multiselect Gets or sets whether the user can select multiple files in the dialog. As we have seen before, a graphic of the current layout for this form is displayed.. A new menuAdd_Click method is added to and...

Manning Windows Forms Programming (phần 6)

tailieu.vn

Since the Form object managed the scrolling, the StatusBar control on the form was caught up in the scroll- ing logic. In the source code, the panel is added using the Control property of the parent form. A private instance is created in the MainForm class, initialized in the Initialize- Component method, and added to the form using the Form.Controls...

Manning Windows Forms Programming (phần 7)

tailieu.vn

Later in this section we will cre- ate some infrastructure that will be useful in our derived forms later in the chapter.. The new class appears in the Solution Explorer window and the BaseEditDlg.cs [Design]. This is not an actual property in the C# sense, and does not appear in the documentation for the Button class. There are five possible...

Manning Windows Forms Programming (phần 8)

tailieu.vn

DisplayMember Gets or sets the property to use when displaying objects in the list control. SelectedIndex Gets or sets the zero-based index of the object selected in the control.. SelectedValue Gets or sets the value of the object selected in the control.. ValueMember Gets or sets the property to use when retrieving the value of an item in the list...

Manning Windows Forms Programming (phần 9)

tailieu.vn

We will add a second TabPage later in the chapter to display the set of dates asso- ciated with the album in a calendar format. In the .NET Framework, this support extends to Windows Forms controls as well.. Use the Events listing in the Properties window, and select the existing methods from the appropriate dropdown lists.. The dropdown calendar is...

Manning Windows Forms Programming (phần 10)

tailieu.vn

Typically, this class is used to support one or more Windows Forms controls in the management and display of images within the control. ColorDepth Gets or sets the color depth for images in the list.. ImageSize Gets or sets the size for images in the list.. TransparentColor Gets or sets the color to treat as transparent in the list’s images.....

Manning Windows Forms Programming (phần 11)

tailieu.vn

of the method.. For our purposes the use of a simple string value in the Tag property was sufficient to display the album’s properties dialog. In the BeginLabelEdit event handler we would make sure the album is valid and can be successfully opened. The code changes required are given in the following steps:. 1 In the MainForm.cs [Design]. Item labels...

Manning Windows Forms Programming (phần 12)

tailieu.vn

1 Set the LabelEdit property for the TreeView control to true in the MainForm.cs [Design]. 2 Handle the KeyDown event for the TreeView control to initiate a label edit when the F2 key is pressed in the tree control.. Also of note is our use of the FindNode method created earlier in the chapter as part of section 15.4.2. 1...

Manning Windows Forms Programming (phần 13)

tailieu.vn

We will discuss the details of these style classes later in the chapter.. AlternatingBackColor Gets or sets the background color to use on every other row in the grid to create a ledger- like appearance.. CaptionText Gets or sets the text to appear in the caption area.. CurrentCell Gets or sets a DataGridCell structure representing the cell in the grid...

Manning Windows Forms Programming (phần 14)

tailieu.vn

Display the caption in the title bar.. This is the default event for this component, so simply double-click the timer in the component tray.. 20 Back in the MainForm class, add a private void menuSlideShow_Click I MPLEMENT THE SLIDE SHOW BEHAVIOR (continued). In the MyPhotos application we display photographs in a Panel control, while in our other applications we use...