There are four points in the book, as shown below:
1. You cannot share ownership between auto_ptrs.
This is easy to understand. Two auto_ptrs have the same object. If one of them deletes the object at a certain time point, the other naturally
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
The udl File Stores database connection strings. I used to write an articleArticleRefer
A simple method to obtain a data connection string (UdlFile)
Download an Open SourceProgramBTS, found that the udl file is used directly to obtain the
Today, my friend asked me how to extract Chinese characters from a string. Because my friend has been working for several years, I suspect that there are some advanced statements here.)
Here, we also had a big joke about this big circle.
A few days
Today, I encountered a problem because the cat did not notice the access permission at the beginning.
Cats and cats use English version. vs. The English version of cats is not good. At the beginning, I still felt that the error message was not clear.
I have read this article 《30 years of C.
In college, the first programming language I learned was C, but the most time I spent was c ++. About five years ago, I began to read two volumes of C ++ programming ideas and used Dev-CPP to practice the
It is irrelevant to the initialization list order of the derived class constructor, in the following order:
1. base class Constructor (in the order of inheritance)
2. Sub-object constructor (in the declared order of the Class)
3. self-built
I am confused about this, and I have summarized it myself. For your reference only. Please feel free to contact us!
Method 1: [Implement transferring value from loginform to mainform, and disable loginform when login appears mainform]In program.
Address: http://www.cnblogs.com/coderzh/archive/2009/03/31/1426758.html
I. Preface
This article describes some basic usage of gtest, including downloading, installing, compiling, creating our first test Demo project, and compiling a simplest test
1. Use objects to manager resources .)
This clause mainly describes how to apply for release of dynamic memory.
RaiIPrinciples:
Ø
Put the resource into the management object immediately after obtaining it;
Ø
Management Objects use destructor
Design class is like design type (treat class design as type design .)
The design class should be designed with the same caution as "when the language designer designed the built-in type of the language.
Class is also a types. Good types have
Declare the member variable as private (declare data members private .)
Reasons for not using public member variables:
1,
Syntax consistency. All accesses to members are implemented through functions.
2,
Using functions gives you more precise
Replace the member function (prefer non-member non-friend function) with non-member-and-non-friend.
To member functions .)
Non-member-and-non-friend indicates non-members and non-friends.
This is done to reduce access to privateThe number of member
Every language has a field that it is good at. Therefore, our strategy is to use multiple languages to complete some of the tasks they are good.
Hybrid programming is a language-intensive, not code-Intensive programming. We must not only have the
We recommend that you initialize the variable definition. However, many users, especially new users, do not initialize the struct or struct array definition, or do not know how to initialize it.
1. Initialization
Typedef struct _ test_t {Int I;Char
C ++ multithreading (1)
Win multi-thread API
A simple exampleIt is relatively simple code to create 10 threads, of which 4th threads are suspended upon creation. When other threads run almost, 4th threads are resumed for execution. # Include #
1. null is not defined in the standard library of C ++, so null is used.
2. The window file name is case-insensitive, so the letters in the header file are case-insensitive when writing the program.
3. the binary tree method can be used to solve
What is the difference between C ++ and C Programming in Linux and Windows?
[Tag: C ++ programming, C ++, and Linux] Let's talk about the differences between C function libraries.
C ++ is no difference?
Function library differences Linux C function
This site's article is originally written by Li huaming himi. The reposted article must be clearly stated: (Author: Sina Weibo: @ Li huaming himi)Reproduced from [Black Rice gamedev block] original link: http://www.himigame.com/lua1/1343.html☞Click
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