1, static member
You can use the null reference of this class object to reference this class static member.Someclass OBJ = NULL;OBJ. staticmethod ();OBJ. staticdata = 1;
It is not recommended to reference static members with objects, but why is it
You are welcome to repost the post, but please mark the author as "nine days Yan Ling". Of course, the link to this post is better.
Without knowing it, I have written six lectures. It is true that this learning can force me to really debug the code
This is an article I saw on csdn.The lecture is not bad. I will post it for you to see.1. When passing a pointer, we can use the pointer to modify the content it points externally. However, it is impossible to modify the object pointed to by the
You may have been using VC to develop software, but you may not be familiar with this compiler. There are many reasons. In most cases, we only "use" it, instead of "Understanding" it. Because it is just a tool, we would rather focus more on the C ++
1. Why should I add the extern "C" to call the function compiled by the C compiler in the C ++ program "?A: First, extern is a keyword in the C/C ++ language that indicates the range of the function and global variable. This keyword tells the
Http://blog.huang-wei.com/2010/07/18/%e9%87%8d%e8%bd%bdnewdelete%e5% AE %9e%e7%8e%b0%e5%86%85%e5%ad%98%e8% AE %a1%e6%95%b0/
To measure memory usage or detect memory leaks, reload the global new/delete statement. Let's first review the related
Const thinking
1. What is const?A common type is a type described by the Type modifier Const. The values of variables or objects of a common type cannot be updated. (Of course, we can steal the bar for updating :)
2. Why is const introduced?The
It is nearly two years after graduation. From the very beginning of the program writing, there are only a handful of companies interviewed. The old man said that he would like to expand himself in the battle. It seems that my experience is far from
In openvpn, a good memory management solution is based on the linked list. The implementation of this solution uses a gc_arena structure, the function of this struct is to collect all dynamically allocated memory blocks and release them in one place.
In programming, especially in a large team, it is extremely important to follow a unified programming specification. Develop a source code writing standard for all developers and a naming standard for programs and files so that they are programmed
Read Catalogue
Objective
10 points difference between new and malloc
1. Where the requested memory is located
2. Return type security
3. Return value when memory allocation fails
4. Whether to specify memory
http://www.cublog.cn/u2/79570/showart_2084600.htmlClass 1: objects and memory 1.1 view objects through memory
Let's first review the definition of classes and objects. Classes are blueprints or prototypes that define all instance variables and
Introduction:
This article introduces two new features of the C ++ 11 standard: defaulted and deleted functions. For the defaulted function, the compiler automatically generates the default Function Definition body for it to achieve higher code
C ++ is such a complex language that can be divided into four major parts:1. C language: for example, built-in data types, arrays, pointers, preprocessing, and statements are all from C.2. Object-oriented C ++: Class, constructor, destructor,
If a class is not associated with a specific thing, but only expresses an abstract concept, it is only used as a base class of its derived class. Such a class is an abstract class, when declaring a method in an abstract class, adding abstract is an
/* Copyright (c) 2012, School of Computer Science, Yantai University * All Rights Reserved. * file name: text. CPP * Author: Hu Ying * Completion Date: July 15, May 11, 2013 * version number: V1.0 ** input Description: none * Problem description:
This is the fourth part of "deep dive into VC ++ dynamic link library (DLL) programming". Before reading this article, read the first three parts: (1), (2) and (3 ).
The content of the MFC extension DLL is the extension of the MFC. You can use the
From: http://wxdlut.blog.163.com/blog/static/128770158200992373211377/
Programmers must know: C/C ++ interview questions (7)
1. Introduce STL and explain in detail how STL implements vector.
Answer:
STL (Standard Template Library. It consists of
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.