Mci_open_parms is a struct type, and its struct is defined
Typedef struct {Dword_ptr dwcallback;Mcideviceid wdeviceid; // IDLptstr lpstrdevicetype; // device typeLptstr lpstrelementname; // file nameLpctstr lpstralias; // alias} Mci_open_parms;
ArticleDirectory
Wchar_t symbol
Char
We are very clear about the symbols of other integers and floating-point numbers in C ++.C ++ standards are clearly defined.
Float and double types do not have symbols.The expressions of the
Often in CPPCodeSee this code in:
# Ifdef _ cplusplusExtern "C "{# Endif
// A piece of code
# Ifdef _ cplusplus}# EndifWhat does this code mean? First, __cplusplus is the custom macro in CPP. If this macro is defined, it indicates that this is
/* Goal, C ++ type conversion. Although I usually don't use much, I am asked about the usage of each cast in the interview with C ++. Date, 2013-3-6env, ubuntu1204-gcc */# include Using STD: cout; Using STD: Endl; // remove unreferenced warning
Source: I have forgotten it for a long timePeople often hear about object-oriented programming. In the past, when I was in school, I also started the object-oriented programming course. Unfortunately, these are all based on C ++ and even VC ++.
C ++ pen questions1. Is the virtual function table created in the polymorphism class compile-time or run-time?
Answer: The virtual function table was created during the compilation period. Each virtual function is organized into an array of virtual
# Include /* standard input/output definition */# Include /* standard function library definition */# Include /* UNIX standard function definition */# Include /**/# Include /**/# Include /* file control definition */# Include /* ppsix terminal
I. Advantages
Inline assembly can be used to embed assembly language instructions in C/C ++ code without additional assembly and connection steps. In Visual C ++, inline assembly is a built-in compiler, so you do not need to configure an Independent
Dynamic_cast (ARG)
Description
In the expression, dynamic_cast (PTR), T must be a pointer or a reference to a defined class type or void *. the argument PTR must be an expression that resolves to a pointer or reference.
If t is void * Then PTR
Document directory
Next we will discuss the class library in. NET 2.0 in the unit of assembly (DLL), rather than the namespace.
We know the installation is complete. NET framework, there are a lot of class libraries, some classes may not be
Document directory
No Default real parameters in C #
Function return value
When defining a function, a type of return value is specified. A matching type must be returned in the function body, or a type that can be matched after implicit
We know that memory space needs to be allocated when a class is instantiated, that is, when an object is generated. How many bytes of memory space does an object need? What rules are used for calculation?
For example
Bytes -------------------------
Document directory
C ++ header file function. Why does C # Not need header files.
Introduction to source code Translation
We know that machines are actually stupid. They only know machine languages such as 0101. the source code you write in
Document directory
Stack)
Heap)
Free storage Zone
Global/static storage Zone
Constant storage Zone
Code Area
We know that the most important resources of a computer are CPU and memory. if the CPU is used, it seems that we cannot directly
Document directory
Method 1
Method 2: Call an API
The role of the shortcut key is clear, that is, quick, easy to operate. few computers use Ctrl + C and CTRL + v. many other software also have various shortcut keys. the computer is naturally
Reflection Definition
Reflection is the ability to review metadata and collect information about its type.
What is metadata? Metadata is something in a collection. we know that a program will generate a lot of DLL after compilation, which is an
Why dynamic memory allocation
Array is a common data structure, but it has a disadvantage that the size of the array must be determined when it is used. If we want to use an array to save the data, what should we do? Setting the Array too large is
Class and Plato's concept world
We know that object-oriented programming is full of classes, but classes are just conceptual, not entities, and do not occupy memory. You cannot use them until they are instantiated. A class is a real entity only
Document directory
6. Todo comments
C ++ coding specification (1): code annotation
C ++ coding specification (2): naming convention
When you read other people's code without comments, it would be quite painful. when it comes to annotations,
People on earth know that the three main characteristics of object-oriented are encapsulation, inheritance, and polymorphism. the first two concepts, as the name suggests, are easy to understand. encapsulation means that all the things are
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