The C + + and system software technology conference will be held in Shanghai in 2016 October 28-29th! The C + + and system software technology conference adhering to the "global experts, connected intelligence"The idea! Conference invitedC + + 's father Bjarne StroustrupAnd many in the System software field at home and abroadTechnology leaderAndFirst-line engineering experts attend!General Assembly NoticeSince 1985 by Bjarne Stroustrup at Bell Labs, C
created to complete the concept of Wora (write once, run anywhere), and its platform independence made it a great success in enterprise applications. So far, it has become one of the most popular application programming languages and is widely used in enterprise-level Web application development and mobile application development .2. The origins of C + +The idea originated from Stroustrup's experience in writing a doctoral dissertation. He found that Simula has a great advantage for large-sca
closed models advocated by Microsoft, and Microsoft later launched the competing. NET platform and the C # language that mimics Java. Later, Sun was acquired by Oracle, and Java became the product of Oracle Corporation.Java was created to complete the concept of Wora (write once, run anywhere), and its platform independence made it a great success in enterprise applications. So far, it has become one of the most popular application programming languages and is widely used in enterprise-level We
method, and how to use the Windows debugging API, such as the "OutputDebugString" function? Do we usually think that we need so many debugging methods on the platform? Now, the program compilation is very difficult, and the program will die when it is run, so it starts to think about how to debug it ......
In 1989 AD, some people asked the chief designer what was the biggest mistake in China's ten-year reform and opening up? He said it was education. (AD 2008 ?) Someone asked the father of C ++
"The Design and Evolution of C + +", Bjarne Stroustrup also mentions that the same is also based on consideration of this issue, C + + has no "Static Checking" (checked exceptions) instead of using "Run time Checking". Also Stroustrup suggests. For dropping a new exception, D, allows it to inherit from an existing exception, which does not affect the existing code. The new code can also handle it. (This is
is no doubt about it. According to Bjarne Stroustrup, the object-oriented programming paradigm (Paradigm) is [Stroustrup, 97]:L decide the class you want;L provide a complete set of operations for each class;L explicitly use inheritance to express common ground.By this definition, we can see that Ood is "deciding on the requirements of the class, the operation of the class, and the process associated with
follows:class String {public: size_t length() const;private: char *data; size_t dataLength; bool lengthIsValid;};size_t String::length() const{ if (!lengthIsValid) { dataLength = strlen(data); // error! lengthIsValid = true; // error! } return dataLength;}Length () is simply a string, declaring it to be const, and it makes sense to buffer length data in order to respond efficiently to frequent queries. However, with this harmless code, the C + +
can be directly accepted by OOP.Object-oriented design (OOD) is a kind of software design method and an engineering norm. There is no doubt about it. According to Bjarne Stroustrup, the object-oriented programming paradigm (Paradigm) is [Stroustrup, 97]:L decide the class you want;L provide a complete set of operations for each class;L explicitly use inheritance to express common ground.By this definition,
31 years ago (1979), a researcher who had just received a doctorate, developed a new programming language for a software project called Bjarne Stroustrup, which was named--c with classes and renamed C + + after four years. C + + is a universal programming language that supports a variety of programming paradigms, including procedural, object-oriented (object-oriented programming, OP), generics (generic programming, GP), and later templates designed fo
Stroustrup In his autobiography that he hated Hegel because of his philosophical influence on Kierkegaard (Gaul). So reading Stroustrup 's book seldom feels the importance of abstract theory. This also affects the culture of C + +: Many C + + programmers can write code, but the concept is unclear, feeling life difficult (:). This is more or less strange C + + 's originator
Practice using C + +)", Bjarne Stroustrup is confident that his new book will provide an answer to "what is the right way to learn C + +", and that 1, 2 carefully chosen books are enough to make a good C + + programmer .
To get this book, first surprised at its weight (well, more than 1200 pages, I bought a photocopy version, take in hand really tired people), read the time with relish, read and disappointed, meaning still not done. This book is not
models advocated by Microsoft, and Microsoft later launched the competing. NET platform and the C # language that mimics Java. Later, Sun was acquired by Oracle, and Java became the product of Oracle Corporation.Java was created to complete the concept of Wora (write once, run anywhere), and its platform independence made it a great success in enterprise applications. So far, it has become one of the most popular application programming languages and is widely used in enterprise-level Web appli
bug that causes try{} catch (...) in some cases to capture the structural exception of Win32, which leads directly to the next problem.Q2 The same is the code above, which makes me very incomprehensible if I use Debug compile mode or compile option plus/EHa after the Win32 a structured exception can be captured (SE ). And, sometimes I find in release compilation mode, if you use the/GX compile option try{} catch (...) can even capture Win32 . (SE ) Structured exception. try{} catch (...) not ju
The future of OOP
Author/bjarne Stroustrup Tim Lindholm compiling/Meng
Bet the treasure on Java? or adhere to C + + not waver? Or think about C #? Are you hesitant? Listen to the experts below to learn more about the status and future of Object-oriented programming languages.
Key words: C++,java,c#,oop
The progress of science and technology is rapid, the product production cycle is getting shorter, many programmers have no time to master the second l
the message is received: The method must be defined in the graph and specified in the object storage. For each object and structure, the methods used to add, modify, delete, and select a method are inherently implicit (although they need to be defined in the object storage, but not shown in the figure), while some are displayed.
2. object-oriented design (OOD) Object-oriented Design
The OOD method is an intermediate Transitional Link in the OO method. Its main function is to further standardize
-parametric constructor" and "Default destructor" are used, the chance of independent "initialization" and "Clearing" is abandoned, the good intentions of C ++ inventor stroustrup are in vain. (2) Both the "Default copy constructor" and "Default Value assignment function" are implemented by "bit copy" instead of "value copy, if the class contains pointer variables, these two functions are doomed to go wrong. For C ++ programmers who have not suffered
double to type
// Money.
Account = money: Convert (33.29 );
Account. Print ();
}
In the code above, the Force constructor is defined as private and cannot be used for type conversion. However, it can be explicitly called. Because the conversion functions are static, they can be called without referencing any object.
Summary
One thing to be clarified is that all mentioned here are accepted by the well-known ansi c ++. Many compilers have made their own syntax revisions to ansi c ++.
constructor" and "Default destructor" are used, the chance of independent "initialization" and "Clearing" is abandoned, the good intentions of C ++ inventor stroustrup are in vain. (2) Both the "Default copy constructor" and "Default Value assignment function" are implemented by "bit copy" instead of "value copy, if the class contains pointer variables, these two functions are doomed to go wrong.
For C ++ programmers who have not suffered enough, if
++ with a clear and clear Low-layer thinking method. It is very helpful to learn some of its seemingly complex syntaxes, such as rtti and traits. C # is basically designed and implemented for Microsoft's. NET platform. Other C # compilers, except Borland's C # builder, are relatively small (but it is stillLanguageJava has becomePlatform, Stroustrup), and its control is basically in the language specification group of the Microsoft Visual Studio Devel
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.