C & C ++, Java Study

Source: Internet
Author: User

I think there are 3 main points to learn C ++:
Pointer
C ++ Library
Oop of C ++

To me the most confused thing is to distinguish which is C feature and which is C ++ feature.
Please look this as reference:

Http://www.cplusplus.com/

Http://www.cplusplus.com/reference/clibrary/

Distinguishing between C ++ and C is a very important issue. It took me several years to figure out ^
But it is still unclear to many people .....
Because c ++ is compatible with C, When I search for a c ++ problem on Google or Baidu
There are always many people who provide a lot of C solutions. I didn't see any English forums. There are many articles in Chinese forums,
Write C code under the banner of C ++.
One of the reasons for this problem is that C ++ programmers naturally start learning C,
Another reason may be that many actual projects coexist with C ++,
After all, many projects are available without C ++,
Later I had C ++, But I didn't change all C code to C ++,
One is unnecessary, and the other is costly.
Another reason may be that many programmers who send code in the C ++ Forum are mostly programmers in the field of communication, embedded, or automatic control,
C has advantages in these fields.
I didn't realize it at first. After a lot of tangle, I finally learned that C ++ and C are different from each other.
For the same problem, there are two solutions for C and C ++.

For example, console input and output
C is sprintf scanf,
C ++ is Cin, cout

Memory application and release
C is malloc and free
C ++ is new and delete

String C is char *
C ++ is a string

And so on.

I still like C ++.
The object-oriented library is simple. C is troublesome for the same problem,
The most obvious example is that there is no string in C, and char [] or char * is used for string *

C ++ is characterized by advanced encapsulation of data types, so it is very simple. C is characterized by many underlying operations, so it is obviously advantageous when underlying operations are required.
High-level languages such as C ++ do not have to worry about Data byte-level operations. However, the C language can operate a bite in 8 bits, which is a bit of a penny,
What's more, there is a union stuff. It seems that one byte can even be occupied by two things at the same time.
For memory-constrained systems, it is clear that C is used, but now the memory is getting bigger and bigger, so in most cases, you don't need to be so careful.
However, Domain C such as communication is still necessary, because the communication content is a string of byte streams, which is useful for processing bytes of C.
It is not necessary to be proficient in C language in website construction.
C language and PHP seem to be two extremes of language. One is to get everything into the array, and the other is to get everything accurate to bytes.
Pointers are required for both C and C ++ learning. The pointer application in C ++ is slightly less than that in C ++, because many basic C syntaxes are implemented by pointers, for example, string is char *.
C ++'s object-oriented learning is a bit interesting,
Unlike Java, it is a little messy and complex, and some things are not easy to use. For example, Java GUI is both ugly and difficult to use.
However, if you learn the design mode, Java should be good. If you have the opportunity, think about it.
I also want to take some time to learn about the Java framework.
No check. Please correct the error!

Related Article

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.