Everyone who learns Java should understand the problems in this series. Of course, it doesn't matter if you just want to learn Java. If you think you are a beginner, but you do not understand these problems, repeat yourself as a beginner.
Question 1
For object-oriented programming, we must first design a good class body structure and interface, and then implement it reasonably.
How to design and implement a string class? This problem seems simple, but there are actually many xuanjicang in it.
We often perform arithmetic operations. Comparison operations are actually an overloaded operator, but they only correspond to common data types. If we want to perform operations on the class and struct, what will happen? The compiler does not know.
Software development overview
Software: process data with a program
Processing data using a series of computer languages
Computer Language Development: machine language --> assembly language --> advanced language
Software Development Process:
1.
1. Native operator new
Let's start with native operator new. Consider the following code, which is used to allocate five int-type spaces and return the pointer to them [1]:
Int* V =Static_castInt*> (::Operator New(5 *Sizeof(* V )));
For the above
STL provides six components that can be combined and used together:
1 container: various data structures, such as vector, list, deque, set, and map, are used to store data. From the implementation perspective, STL container is a class template, in
Link: http://blog.csdn.net/csdnji/article/details/169200
The left value (lvalue) and right value (Rvalue) are two very basic concepts in programming, but they are also very easy to misunderstand. I have read many articles, I feel that I have not
Vector is part of the C ++ standard template library. It is a versatile template class and function library that can operate on multiple data structures and algorithms. Vector is considered a container because it can store various types of objects
String
1. char_traits character feature class1) significance: Wrap the universal behavior interface of a specific string element so that the container can execute a specific behavior based on the feature information.2) A general type name is defined.
5.1 Arithmetic Operators
Arithmetic Operator priority-the highest level of the unary operator, followed by the multiplication and division operation, followed by the addition and subtraction operation of the binary element.
Remainder operation and
I don't think there will be much controversy (there will be no controversial terms at all, for example, "variable/variable, Program/program, class/class" is not listed ):
Agile development-agile (software) development
Architecture-Architecture
01. Three major procedures of the program
There are three process methods in program development:
Sequence--From top down, Sequential Code Execution
Branch-- Determines whether to execute the code based on conditionsBranch
Loop--
#. String suggestion
The convenience of using string is unnecessary. Here we should emphasize the security of string. String is not omnipotent. If you need to process strings frequently in a large project and may be multi-threaded, you must be
If you have read this article, please leave a comment. If you have reprinted it, please indicate the source and respect the author's Labor achievements. Thank you!
Many people think that programming languages do not know where to start. It is a
Carray and Its Derived classes
1.Introduction: The access method and efficiency are the same as those of ordinary arrays. The powerful functions of ordinary arrays are as follows:The array size can be changed.. Array usesQueue-based Data
ContainerA container is a collection of objects of a specific type, a container's type is divided into sequential containers, container adapters, and associative containers, a sequential container aggregates a single type element into a container,
Basic PHP tutorials (suitable for beginners who have Programming basics but are unfamiliar with PHP-the tutorials are mainly presented in the form of code) before this tutorial, I will not always say anything about PHP. For more information about
The basic elements of the Operator programming language, which makes our code more concise and straightforward. However, in order to solve the problem of different types of operands, we have introduced the concept of forced conversion. Let's look at
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.