How to Learn the C ++ language? (Reprinted)
Posted on Xu zhengya's Blog reading (1) Comment (0) EDIT favorites to 365key category: Be Your Personal Best
xmlns:dc="http://purl.org/dc/elements/1.1/"xmlns:trackback="http://madskills.com/public/xml/rss/
Question:
# Include
Int main ()
{
STD: cout
Return 0;}
How to make the output content of Mian () in the above Code as follows:StartThis is in mainEnd
Answer:The method I first came up with was to rewrite the cout class in STD and modify the
/********************************* two-color ball automatic number selection ********************************** / # include # include # include using namespace STD; int main () { int * A = new int [6]; srand (unsigned INT) time (0); for (
C developers often use # define, that is, macro to declare constants, but macros are global, which is difficult to maintain for large projects and often leads to name conflicts. Fortunately, C ++ brings us the namespace. It is used as follows. A
Article Source: http://hi.baidu.com/%CF%F4%CA% AE %C8%FD%C0%C9/blog/item/651b47dad560f8d1b7fd48f1.html
Polymorphism is a major feature of OO.Only abstract classes of pure virtual functionsIt is called an interface class or a protocol class
1,Write the decimal number as octal.Test: int I = 10; Int J = 010; int p = 0x10; printf ("I = % d/N", I ); printf ("J = % d/N", J); printf ("P = % d/N", P );
2,'Yes'And"Yes"ObfuscationTest: printf ("% C/N", '12'); note: In BorlandC ++ v5.5 and lccv3.
Objective: to correctly understand the Exception Handling Mechanism of C ++Learning the definition and execution process of Exception Handling
Content: defines a cexception class, with a member function reason (), used to display the exception type,
I. Basic Knowledge
1. A class is a data type that combines data and algorithms.
2. If an uninitialized variable is referenced, an error will occur (the system assigns it a random value, which is related to the last referenced value of the system
How to use C # To create a three-tier Database Application 1. Analyze the following layers in our program: web layer, Business Entity layer, and data layer. The Business Entity layer is responsible for data exchange between the web layer and the
First, review basic computer knowledge:
The underlying data in the computer is represented by binary and 0 and 1. Each 0 or 1 is called a 1-bit, and the 8th-bit binary number is called a 1-byte, which can represent a character in the ASCII code. A
Chapter 3: be the boss of a good machine
At any time, we should never forget that we are learning a language. The basic requirement for learning a language is to use it to express our intention accurately, not only to make machines understand
Note range: section 2.8
From the beginning of this chapter, we have been following a main line and followed the author to design a relatively complete array class. From the design perspective, (of course, apart from the real-time Library) we
Link: http://www.allaboutprogram.com/content/view/13/
C ++ Introduces New Explicit conversions such as const_cast and reinterpret_cast, even some experienced C ++ programmers make mistakes in some details. It is true that since we can simply write:
--------------------------- Graph. h --------------------
/* The simplest graph implementation provides only the most basic interfaces* An undirected graph stored in an array. This Code uses the bool type added to c99.* We recommend that you use Dev
Before reading this article, you must first understand that the various access control that C ++ provides for us is only a limitation given to us during the compilation phase, that is to say, the compiler ensures the correct behavior before you
Note range: Section 1.5
The content in this section is not very difficult. Anyone who has learned a little programming can easily accept it. However, I have always had a feeling. I/O systems, which are the most commonly used but the most
Note range: Section 1.2
In section 1.1, the author raised a question and gave a solution using the idea of separation, governance, and refinement. I will repeat it here. Before learning a new thing. Starting with its idea, I suggest you do
I Love Tiananmen, Beijing
Sun rises on Tiananmen
Great leader Chairman Mao
Guide us forward
Article 1 some students asked me how to learn C ++ well. I have no other way to give it to you. The only way is to read and read large books. , you can
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