Description: These string processing tips in peacetime programming will be generally encountered, summed up a lot, here only to provide some more fun for everyone's reference.
The basic method of implementation is the common method of string
There are multiple structured Excel, with complex headers that need to be merged into one, and the extra header data is removed, and the COM component can be used to read the range of each Excel table to merge into a new table. Sample such as Figure
"
description
example
output
c currency
string. Format ("{0:c3}", 2)
$2.000 d
decimal
string. Format ("{0:d3}", 2)
002 e
scientific notation
1.20e+001
1.20e+001
This article needs you to be familiar with C#,activex
Back to a reader's letter, Jane talked about embedding our controls in the Web page (we can implement the application into the Web page). As for this small control, the function is not worth
Real time application Real-time application technology is used in this article as an example to demonstrate the use of the socket class between a user (TcpClient) request and a server (tcpserver) request. The project also demonstrates how to use
Using System;
Using System.Collections.Generic;
Using System.Text; Namespace ConsoleApplication1 {class Program {static void Main (string[] args) {//C
Reate a new Dictionary of strings, with string keys.
dictionary
Enumerable.cast is used to convert IEnumerable to a generic version of ienumerable. After conversion, you can enjoy other methods of enumerable (such as where, Select), which will greatly facilitate our coding.
But there is only one example of a
Visual|window
Pipeline technology is generally implemented using the window API, I recently tried to use C # to implement the Windows pipeline technology, found that C # itself convenient process threading mechanism to make the work is very simple,
Material images of the overall color composition is not complicated, are the background of green and character of orange. To deal with when you can choose color, and then use the color correction fast image color change, figure part can be according
Visual
Maybe everyone knows the concept of DataView, but perhaps not many people can say clearly how well it applies in the. NET architecture. For example: How do the DataGrid and repeater these controls correlate with data? A lot of people would
Stored Procedures
Why do ① use stored procedures?Because it executes faster than SQL statements.
What is the ② stored procedure?With a bunch of SQL statements, you can also execute an SQL statement based on a condition. (Ax is writing this article)
③
Load
1. Overview:Resource files are very early, in. NET times this thing is not unusual, in the multi-national language of the timeThe text of different translations is usually stored in the resource bundle. In addition to putting strings, the
C # calling DOS commandI want to make an assembly language editor, but I can't get the running information when I call Masm.exe. The code is as follows:Process P = new process ();P.startinfo. WorkingDirectory = "e:\\";p.StartInfo.FileName =
C + + generates 4 member functions by default.
Default constructor (constructor), destructor (destructor), copy constructor (copy constructor), Assignment function (Assignment);
Where the destructor, the basic type data for C + + is automatically
When declaring template parameters, the prefix keyword class and typename can be interchanged;
Use keyword typename to identify nested subordinate type names, but not in base class lists and member initialization lists.
Subordinate name (dependent
The RTTI, RunTime type information, run-time type information, is the main component of polymorphism,
Through the runtime (runtime) to determine the type of use, perform different functions, multiplexing (reuse) interface.
Dynamic_cast<> can
In our previous series, we moved an existing iso-c++ application gradually to the microsoft®.net Framework, clarifying the interoperability features of C++/CLI, and highlighting the differences between C + + and. NET object models. In this next
4th the interface World of the dialog box
Summary
This topic first discusses the general process and techniques of the dialog box interface design, and then creates the dialog class and displays the dialog box in a modal and modeless manner.
Algorithm Explanation:
As the program began to run, the ants began to move out of their nests, looking for food, and they crawled through the screen until they found food and returned to their nests.
Among them, the ' F ' point means food, ' H '
Hanoi is definitely a classic algorithm topic, although it was also said that the program is not long, but always feel that understanding is not clear, see the program can understand what meaning, after a period of time to forget the process, can
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service