1. Get and set the fully qualified path of the current directory.String STR = system. environment. currentdirectory;Result: C:/XXX/xxx
2. Obtain the application startedProgramThe path of the executable file, excluding the name of the executable
Select
A select statement is used to project a set sequence based on a given condition. A select statement can return the filtering results of a combination, return the anonymous type, operate on the returned results, and return the combined
Yesterday I learned how to program and obtain the information of the local Nic. Today I learned how to modify the IP address of the local Nic. In fact, the principle is very simple, just call the doscommand with C ++. I have to say that the
Resolve the differences between _ cdecl ,__ fastcall and _ stdcall:In the function call process, stacks are used, which indicate different stack call methods and release methods.For example, _ cdecl is the stack calling method of the Standard C
#! /Usr/bin/pythonimport sysinput = sys. argv [1] fp = open (input, "R") Flag = 0 quote = 0 for line in FP: myline = "" length = Len (line) for index in range (length): If flag = 0 and quote = 0 and line [Index] = "\"": quote = 1 myline + = line
To find an efficient stored procedure, the following stored procedure pages in C # + MSSQL are tested. Test conditions:
Environment: vs2008 + mssq2000
Data volume: 2 million
Test the following two stored procedures:
First:
Create procedure
Source: http://blog.csdn.net/CAICHAO1234/article/details/8997051
(1)
I learned about ORM (Object link ing) some time ago, and then I found the C ++ ORM framework. I found that there are very few such frameworks:
Name
Open Source
After work, I collected some small code segments for you to search.
1.Statistical Method of a single character in a regular expressionDim STR as string = "fkdsajfl Gan jdsa Gan kfjdsflaf" dim Reg as new text. regularexpressions. regEx ("Gan")
The multi-document interface is the so-called MDI, which was introduced from the Microsoft Excel spreadsheet program in Windows 2.0. This is because the Excel spreadsheet user sometimes needs to operate multiple tables at the same time, MDI provides
(1) What is delegation?
1. Delegate can be seen as a new type of object in C # (delegate is a type that saves method reference in the object ). The delegate passes a method as a parameter to another method through the address transfer mechanism. It
1. What is static?Static is a common modifier in C ++. It is used to control the storage and visibility of variables.
2. Why is static introduced?When a variable defined in a function is executed to its definition, the compiler allocates space for
// I admit that most of the content below is obtained from the Internet
1. dynamically create two-dimensional arrays in C
--------------------------
Enter M and N for the question, and then define a two-dimensional array a [m] [N].
You can do
Direct access to registers and ports
Definition
SFr P0 0x80SFr P1 0x81SFr adcon; 0xdeSbit EA 0x9f
Operation
Adcon = 0x08;/* write data to register */P1 = 0xff;/* write data to port */
Io_status = P0;/* read data from Port */Ea = 1;/* set a bit
The implementation of traditional smart pointers mentioned in C ++ Primer:
The essence of a smart pointer is to allocate a pointer to a resource object on the stack. when an object is out of scope, its destructor is automatically called. Modify the
Guidance:
Keyword explicit
Explicit only applies to constructors and is used to suppress implicit conversions. For example:Class {A (int );};Int function (a );When function (2) is called, type 2 is implicitly converted to type. This situation is
When compiling C language, you may encounter the following error message: 'true' undeclared (first use in this function) or 'false' undeclared (first use in this function): bool, true, false is all undeclared, and the reason is very simple, because
We know that WEKA is a machine learning Toolkit (http://blog.csdn.net/Felomeng/archive/2009/10/17/4687061.aspx) developed in Java language ). So what if I want to call it in C? Ikvm (http://blog.csdn.net/Felomeng/article/details/4063343) can be used
Client-server
Undoubtedly, this is probably the main theme of the development of online games. If the browser is regarded as a common client, there is no essential difference between B/S and C/S. Okay. I just ran the question from the very
Shift Operator in C Language
The shift bit operator refers to the operation of moving a number of digits left or right of a Data binary number. The offset operators can be left-shifted or right-shifted, both of which are binary operators. The
Introduction to Microsoft Agent
The Microsoft Agent API can display cartoon roles. In addition, it can also support speech recognition. Therefore, application software can respond to voice commands, the cartoon character can respond to commands
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