C + + Trivia point 2: about development

Source: Internet
Author: User

first, the simple development process

(1) define the problem to be solved;

Clearly define the problem to be solved, such as the specific implementation of what Functions.

(2) designing methods to solve problems;

What are the characteristics of a good method:

1. The method is clear;

2. normalization; (has been verified)

3. Strong modularity, easy to modify and maintain;

4. Strong Program robustness;

(3) design procedures to implement the above methods;

Note: syntax, fonts, file naming, and so On.

(4) Compile code;

  

g++-C file1.cpp file2.cpp File3.cpp produces file1.o file2.o file3.o;c indicates that only. o files are generated;

(5) the intermediate files generated by the link;

g++-o prog file1.o file2.o file3.o-o generate executable file; compile and link: g+ o prog file1.cpp file2.cpp file3.cpp

(6) Testing and Commissioning procedures;

C + + Trivia point 2: about development

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.