Suggestions for the basics of Program Design (I)

Source: Internet
Author: User

Today, the basic program design courses of the next younger brother and sister will be held in the summer, and the daily time is up to 8 hours. Let's look back at the dilemma of getting started programming, if you are free of charge, you will be added later.

I hope it will be helpful to you. If you have any questions about C ++, please contact QQ (414445050) or email (qq mailbox)

 

In those years, I learned the basics of program design. The most difficult part is not language, pointer, or algorithm. It is all about getting started. The idea of program design is the most important thing to get started. In my personal experience, how can I achieve this?

1. First, you must free yourself from tedious language details. For example, in chapter 2 of the textbook, you can look at some concepts about data types and operators. Do not study too much or waste time. Starting from Chapter 3, we can write some interesting small examples. We haven't learned many concepts, so it's easier to get started. Chapter 3 is well learned, and the functions in Chapter 4 are just a matter of course, now let's look at the many concepts in chapter 2. Naturally, we know what needs to be understood and what needs to be found in the book.

2. with regard to the selection of the compilation environment, the school gave us the old VC ++ 6.0 in that year. If you are not interested in this lesson, it would be okay to use it, otherwise, we recommend Visual Studio express2013 (a free version, which can be used with confidence). For the reason, there is no need to go too far. Only one point is that VC ++ 6.0 is something of the last century, I really shouldn't have used it today.

3. Many of you may not have heard of any programming language. The following describes some of the most common languages, so that you can count on them.

C ++: It is famous for its huge complexity. It also supports C, object-oriented, template programming, and other forms, with extremely high running efficiency. It has a wide range of application fields and steep learning curves. c ++ is often required for game development, many servers, and so on;

C: The lowest-layer languages in advanced languages, featuring high operating efficiency, many details, and relatively low application areas, such as operating systems.

Java, C #, and so on: It is widely used. If you don't learn it, you only need to know such languages;

Python and Perl are not listed one by one.

4. The first executable program:

If you don't want to start the first program quickly, all the programs in this semester are the same:

1) Open vs 2013 Express

 

2) create a project

3) set the type and name the project

Note that visual C ++ is selected on the left, and an empty project is selected on the right. The following names can be used in Chinese, such as "day". Of course, they are more civilized...

4) create a source file

Open solution manager, right-click the source file, add, and create an item

Then select the C ++ source file (with the suffix. cpp) and start the file with the name, such as duange. cpp.

5) enter the code (in the future, only the input of this part of the programming task has changed, and the above steps are the same)

Since you do not understand programming, you don't have to worry about what the following code means. Just feel the programming!

Generally, the first teaching in all textbooks is Hello World, and the Chinese version of Hello world is as follows:

1 # include <iostream> // contains the following iostream header files. Basically, all programs starting with this line start with 2 using namespace STD this semester; // This is a declaration of the namespace, the second line of the program this semester is basically the 3 4 int main () // main function 5 {6 cout <"Hello, have you eaten? "<Endl; 7 system (" pause "); 8 return 0; 9}

Let's take a look at the pop-up!

This black box will always be with you for a long time, from curiosity to familiarity, haha.

Okay, that's it.

 

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.