Function Name: fflushFunction: clears a stream.Usage: int fflush (File * stream );Program example:
# Include # Include # Include # Include
Void flush (File * stream );
Int main (void){File * stream;Char MSG [] = "this is a test ";
/* Create a file *
For ease of description, all the following pointer types are int *, int **
Simple pointer example:
Int A = 10;
Int * P = & A; // The most commonly used pointer. It is a level-1 pointer and its value is the address where the memory stores variable.
In C/C ++ programming, when multiple basic data types or composite data structures occupy the same piece of memory, we need to use a consortium; when multiple types, multiple objects and multiple things only take them for a while (we call them "N
How is the c ++ object represented in the memory? What is the relationship between data members and member functions? What is the this pointer.
The virtual function table is not considered here.
The memory size of an object is actually the size of
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
When using C ++ programming, type conversion between different data types is often used. You may be familiar with the forced conversion of C types, add a "(Force Conversion Type)" before the expression )". In C ++, you can still use the C method to
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
What is an internal connection external connection?
Relations between CPP source file and H header file
Extern external Declaration
Static internal connection
Const keyword
Inline and static functions are also internally
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 use a template?
We know that there are many different object types that may have the same operation. Basic types such as numeric types have addition, subtraction, multiplication, division, and ratio. classes abstracted from reality are more
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
Hexadecimal story
When dealing with numbers, we were most exposed to decimal. We basically used decimal in mathematics classes from elementary school to university. however, there are various other hexadecimal formats. for example, the time is in 6
Document directory
C ++ Basic Data Type
C # Basic Data Types
1. Type SYSTEM INTRODUCTION
When we understand transactions, we always like to divide the categories first, and then study each type of features. In programming languages, we also
Binary sort tree, also known as binary search tree, has the following features:
(1) If the left subtree is not empty, the value of all nodes on the left subtree is smaller than the value of its root node;
(2) If the right subtree is not empty, the
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