Object-Oriented Programming (C + +) notes

Source: Internet
Author: User

Introduction to the first lecture and programming environment

1. Curriculum Orientation

This course mainly solves the basic design Method (theory), mainly studies oo thought, and the application of OO thought in programming.

Through the C + + language, OO programming thought learning, improve the ability of students to analyze problems to solve problems.

Pre-Curriculum: The Basics of programming

Follow-up courses: Data structures, software engineering (design pattern is the foundation of software Engineering)

The process of selecting those knowledge to compile the program:

1, computer language will be used,

2, know how to program to go, sorting algorithm basis will be,

3, the computer itself things, such as the operating system to know

4. Technical basis in specific fields

This course is mainly about: the methodological basis of design , such as structure, object-oriented, object-based, generic, component, the more complex the task, the more important the design methodology

In short, the programming methodology, facing the guiding ideology of the problem, how to think when facing the problem.

2, Bibliography: Talk about that part to read the specific chapters, selectively to read

C + + programming language, program design practice

Object-oriented system analysis

Design Patterns--the basis of reusable object-oriented software

3, the way to do something:

1, learn first, see how others do, read more information learning (learning);

2, hands-on, more than try (verification), many want to understand more, more use, do more problems (application);

3, the verification process and the application process encountered problems, to ask more, more search, in the network forum to ask more questions;

4, many remember, namely induction and collation (not pure memory) own income.

Undergraduate is essentially design ideas, design ideas, so much more want to think about why so design and not so design I myself will how to design why so, through these thinking to improve their ability to think.

4. Programming Environment and tools

Because object-oriented design ideas are understood and mastered in the process of writing code and programs.

The compiled and connected executables of different platforms are not universal.

Mac:

g++-C sourcefile Compilation

g++-o outfile objfile connection

g++-o outfile sourcefile compile link one step complete

5, int main (int argc, char** argv)/int main (int argc, char* argv[]) argv array of strings

Atoi string into an integer, need to introduce Cstdlib header file

How to set command parameters in Dev-cpp: run the = = parameter in the Parameters dialog box

Object-Oriented Programming (C + +) notes

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.