[CPP]An Overview of C

In this semester, i enroll a module called C++ programming, aiming to learn Cpp in a systematic way. So from then on, i might rewrite the sorting algorithm in C++.
Also, it will also be a recording to my learning road on C++, the structure and language might not be so precise.

Acknowledgement

C++ Prime
The Complete reference: C++, 4th edition
http://www.learncpp.com/

Content

C is a middle level language

enter image description here

Separate Compilation

Most short programs are completely contained within one source file. However, as a program’s length grows, so does its compile time (and long compile times make for short tempers). Hence, C/C++ allows a program to be contained in multiple files and lets you compile each file separately.
Once you have compiled all files, they are linked, along with any library routines, to form the complete object code.
  • Compile
  • Link with library
  • Complete object code
The advantage of separate compilation is that if you change the code of one file, you do not need to recompile the entire program. On all but the most simple projects, this saves a substantial amount of time.

评论

此博客中的热门博文

[MLE] Linear Classification

[AIM] MetaHeuristics

[CS231] Neural Networks