Beginners ' experience of C + +

Source: Internet
Author: User

Last week I talked with a classmate about some of the more popular programming languages that use widely, Apple's iOS than any other language
More concise and straightforward, and he is now planning to keep working on iOS. I've been using C language and
GNU Arm assembly language, because these two languages in the development of system-level programs and hardware drivers more than other languages
As well as other high-level language packaging, while the complexity of time and the overall speed of operation
Relatively better, but in the system upper application software development is more cumbersome than C + +, programming speed is also reduced
Many. With QT (which is excellent in the embedded GUI), Qt is also based on C + +
A complete library, so make up your mind to start learning C + +.
C + + has many places and c the same, can say basically inherit c all things, in addition to these, C + + Also
Added a lot of new features, such as function overloading, classes (class), containers, iterators, and the standard library also provides 100
To a fan-shaped algorithm to the user for the pattern programming, the following I will be a beginner's perspective to express my personal views
it.
For a function overload, it is a set of letters that have the same function name but different parameters (or different return values)
Can use any of these functions in a user program, the compiler determines the set of parameters by examining the
Which of the functions is compiled (although C + + has more overloaded functions than C, the other C + + compiler is more
The translator has more of this function, but the final compilation is only one of the corresponding set of functions, only the square
User programming, not yet found other uses), in fact, the difference in programming language is fundamentally different compiler,
Language is determined by its compiler, and if a new compiler does well and allows a large number of program apes to accept, it
means that a new programming language is about to be unveiled.
Class is arguably the most noteworthy of C + +, and it makes it possible to use C + + to
The cost of writing a large program is greatly reduced in time, and the amount of code written is much lower than C, which can be like
The child process of Linux inherits the parent process and allows the object to continue with some of the attributes and operations of the class. Class allows users to set their own
The type of our own, let us use it and use the standard type as convenient, in addition we can put the definition of the class into
To privatize (private) The interface public, member functions, and so on,
You can have an out-of-class function to access public data members only. But C + + also takes into account that the outside of the class function access to the private
Data members, and therefore also user-added friend functions. Defining specific actions on objects in a class allows us to manipulate
Provides great convenience when it comes to class objects.
Container, we know by name that it is a vessel that can hold data, as in C language
The array, queue, stack, list, etc., it is divided into sequential containers, associative containers, container adapters, sequential containers
In addition to the C language inside the array, there are vector,list,string,deque. In fact, we can actually do this in C.
Now, but C + + has helped us do all the work, we just have to use it.
Iterator, this thing listening to the name makes me the first to feel like a high-end new thing (at least I haven't been able to
As the name implies, perhaps the primary language is not the reason for it, haha), took the book to see after it is not what
What's new on the tall, the pointer that used to be an iterator is actually a set of
Data structure when an indicator, there is no want to have the array of the subscript, yes, that's the effect, through
It is easy to operate our data.
The pattern algorithm also simplifies our programming to a great extent, the algorithm is the concrete method of implementation, in C + +
Provides us with 100 or so algorithms, such as sorting, finding elements, deleting elements, etc., exempt us from the manual
Each to write the corresponding function.
From the beginning to learn C + + is only 6 days, the above has the wrong place also please help correct, C + + and C, the profound
, C + + on the graphical interface of the support for the application software has been greatly supported. If you want to learn C + + very
Easy, C + + library is very large, you want to use the language of course you have to have a certain degree of knowledge of the standard library, to write
Good code, in terms of data structure and memory use must also have a considerable depth of foundation, good
Be studious!

Beginners ' experience of C + +

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.