Let's introduce the following connection to the database:We first connect the data via the Connection object:string str1 = Application.startuppath; String str = "PROVIDER=MICROSOFT.JET.OLEDB.4.0; Data source= "[email protected]"
Item M23: Consider changing the libraryThe design of library is a compromise process. the ideal library should be short, fast, powerful, flexible, extensible, intuitive, universally applicable, with good support, no use of constraints, no errors.
Take the 32 system as an example.1. Pointers and AddressesA pointer is a variable that holds the address of the object being pointed to.1.1 Definitionsint i = 10;int *p = &i; Defines a pointer p, which points to a variable of type int& is the
Problem:The equation f (x) = x^3+10x-20 is given, and the root of the equation at (a) is not less than the accuracy of 10^-4Seems to be very simple a small problem, in fact, there is a lot of detail worth noting, first give the codeMethod
The C++11 enumeration type is "Domain" (scoped enum), which has the following advantages over the "non-domain" (unscoped enum) of the C++98 enumeration type:1 namespace pollutionIn general, names that are declared within curly braces are limited by
C + + template, is a very important part of the previous mention of some foundation, about the template needs to be aware of the issues, will be in the recent collation, today is to say, is a template out of the standard Template Library.The
Pointers, polymorphism (virtual function table, memory layout), scope, memory managementAlgorithm and data structure, data structure by mastering hash, priority queue, algorithm has string processing, simple DFS, BFS, dynamic planningSystem
1/////////////////////////////////////////////////////////////////////////constant Pointers: variables cannot be modified, pointers can be modifiedConst int*p;int Const*p;//pointer constants: Pointers are not modifiable, variables can be modifiedint*
First, member functionsThe member function can be considered as a global function of the class scope, not in the space allocated by the object, only the virtual function will have a pointer in the class object, storing the address of the virtual
Exception handling:The so-called exception handling refers to the operation of errors and other exceptions to the processing.The mechanism for handling exceptions in C + + consists of 3 parts: Check (try), throw (throw), Snap ( Catch). 650)
This is the most painful interview I encountered, entered the building to the 7 floor, the first reflection of cotton is dark and shabby desk, give me a very bad impression. At that time, I was going to turn around and take into account the one-hour
ASSERT (ASSERT) macros in the C language are one of the best debugging tools available to embedded software developers. Although the assert is powerful, I seldom see it being implemented, and in some cases where it is used, its implementation is
The inheritance mechanism is the most important means for object-oriented programming to reuse code, which allows programmers to extend and add functionality on the basis of preserving the original class characteristics . This produces a new
Remember that there is no rename in the C # file class, so a lot of the online use is move MoveTo copy+delete and so on these methodsIn fact, although the above method can realize the function but it always seems that the egg hurtsToday, Baidu
Reprinted from Address: http://blog.csdn.net/zsy2020314/article/details/9429707Today suddenly want to analyze the function in the process of mutual invocation of the stack frame changes, or to try to use a clearer idea to describe the process, the C
C ++ 11 nullptr, 11 nullptr
In C ++ 11, nullptr is a null pointer and can be used to assign values to pointers (pointing to any object type ).
Generalized INTEGER (integral types) = char, short, int, long, long longnd and their unsigned counterparts,
Templates in C ++
1. Generic programming
-- Implements a general standard container library. The so-called general standard container library is to do this: for example, the List class stores all the kenun-type objects. Generic programming allows
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