Detailed explanation <K's 50 PV> (Part 1)

zhaozj2021-02-08  532

Explanator Notes on

Detailed explanation Revision 1.0

[Part I]

By Kingofark

[Note]: is "Kingofark's 50 Points of View About Learning C and Programming (Kingofark About learning C and 50 perspectives)"; is "Kingofark's 35 More Points of View About Learning C and Programming (Kingofark About 35 Views on learning C and programming) ".

Terms 1. Take C as a new language study (nothing to do! Really.);

Interpretation]:

This article derived from "Show Standard C as a new language" in the "Programmer" magazine 2001, "," the author is C designer Bjarne Stroustrup. This article can also be found on the Bjarne Stroustroup's personal page.

This time in time is very good to adjust my thinking, let me have to change the C this language and myself to C when I start school C , and I will start "K's 50". PV> written.

In fact, it is very simple to give a reason for this Terfement, I only quote the Bjarne Stroustrup in this article:

"Take Standard C as a landscaping C or landscaped C with classes, just wasting the beauty opportunities provided by standard C ."

[Kingofark's harvest]:

I often read the articles of the masters, follow the advanced ideas of masters, don't let them live in different times with Masters.

[reference]:

Terms 28, 29.

Terms 2. Look at "Thinking In C ", don't watch "C becomes dead";

Interpretation]:

Here, I am no longer talking - because there is too much dispute. Here I recommend me some discussion about this book in "Kingofark" series of articles. (When writing this article, "Kingofark's" Five Comment "is already in writing, I believe soon, I can meet you.)

[Kingofark's harvest]:

Understand the truth of "the ditch can also be shipped".

[reference]:

Terms 19, 21, 22.

Terms 3. Look at "The C Programming Language" and "Inside THE C Object Model", don't think because of them is difficult and we are actors, so I don't look at it;

Interpretation]:

With regard to these two books, you can also refer to my "Kingofark's" Five Comment "series of articles about C books on some discussions on C books. (When writing this article, "Kingofark's" Five Comment "is already in writing, I believe soon, I can meet you.)

Yes, these two books are really less likely to swear, but everyone should (also have already already) realized that the spirit of drilling is a must-have quality. This is why I explain the same question in several clauses.

[Kingofark's harvest]:

"The book has a road to Lu Qin, learning the sea and has no barters."

[reference]:

Terms 19, 21, 22, 30; Terms 26.

Terms 4. Don't be confused by vocabulary such as VC, BCB, BC, MC, TC - they are all integrated development environments, and we have to learn is a language;

Interpretation]:

VC: Microsoft Visual C

BCB: BORLAND C Builder

BC: Borland C

MC: Microsoft C

Tc: Turbo C (sometimes Turbo C )

WC: Watcom C

Various simplified, mixed oral names are easy to make beginners feel confused, which is normal. However, in fact, as long as you pay attention to it, these confuses can be completely eliminated.

You can pay attention to the following points:

(1) Due to the C language (other language is also the same), it is always necessary to use an integrated development environment as a carrier, platform to be real "use", so people are easy to use an integrated development environment in verbally. One language (such as VC, BC, TC, etc.);

(2) Programming language requires a carrier to be used, which is like Chinese, English must be said with a mouth, writing it with a pen to play;

(3) Compiler (or interpreter) Sometimes it is also integrated with the name of the development environment (for example, is you compiled with VC? "It should actually be" Do you compile the C compiler with VC? ") ;

(4) As long as you know more about the details of various vocabulary (usually in English full name), you can easily find that some of you should make it clear;

(5) In the oral, please try to be accurate without affecting normal expression, don't confuse more updated beginners.

[Kingofark's harvest]:

"I don't want to learn the language in this language."

[reference]:

Terms 6, 9, 39, 41.

Terms 5. Do not let go of any simple small programming problem - they are often not so simple, or you can lead a lot of knowledge points;

Interpretation]:

This is Kingofark my personal experience.

I have learned Basic in my early years. When I learned C, I took a textbook in my hand, and I went wrong with the exercise. There is such a question:

"Write a program, print on the screen

*

* * *

* * * * *

* * * * * * *

Requires the loop statement to learn this chapter. "

In fact, I jumped to the next question when I swept to the mentally triangular pattern. I didn't pay attention to the final requirements of the topic. So I gain such a code in my mind: Printf ("* / N ");

Printf ("* * * / n");

Printf ("* * * * * / n");

Printf ("* * * * * * * / n");

......

A few weeks later, I was very pleasant to see the second half of this question when I turned into books, and my heart was suspicious; "" Why do you use a simple print question? "So re-exam. This time, I didn't flash anything in my mind - oh, in addition to the question mark - I can't help but start writing the program. As a result, "I don't know, I have a knot," after a half-day call, I finally have a correct answer. I have understood: Oh, I have to design it on the draft paper. I can't think of my mind; Oh, print a triangle can also use such a clever cycle; Oh, ......

"But this is exactly what you didn't care about it !?" You may complain that I am talking about it, "What is this article?"

Ok, if the story above is the problem, then the topic is running.

After that, after the beginning of the study, "*", the exercise on the book is not easy, there is such a way:

"Write a program that requires input arbitrary decimal number, display the corresponding hexadecimal number on the screen."

"It's very simple," I think about it again (um? How can I say "again" this word?), The brain flashed in the mind: Define an int decimal_val Enprint is ok. "

Three down five except, the procedure came out, it was proud of the ocean, and couldn't help but be a father. In the early years, my father who did a computer worker saw me running a program, saying to me: "The value of the input is too limited, only the value of the INT level can be converted."

"That is simple!" I am more proud, "I change Int to long int, not, change it to long long int, ...?" The problem suddenly serious: exercises can be converted to "any decimal number", but even Long Long Long Long Int is also limited. How to do?

The father only said: "Is it possible to consider receiving the user's input with a char number, which can support any long input, which is to convert hexadecimal methods to be redesigned."

A week later (oh, yes, I am very stupid), I can finally show off my "super conversion program" in front of my friends.

[Kingofark's harvest]:

"Small but complete"

[reference]:

Terms 35, 37, 47; Terms 13.

Terms 6. Will use Visual C , do not explain that you will C ;

Interpretation]:

Visual C This integrated development environment really provides us with a lot of things, including huge MFC (Microsoft Foundation Class), cute buttons, very "professional" help window, people are very accomplished About windows, and many more. However, the core algorithm of a particular program still needs us to provide, the class that is suitable for specific procedures, is still required to derive and manage, most of the data structure of most specific procedures still need us to implement - only we are in VC Do some things will be made. Many people have claimed me that he "will" VC. But in addition to the examples, they can't do anything.

The reason why VC is "integrated development environment" is because it is the "environment" that carries C , and C is the main body we have to pay attention to.

With the cheers, cheers and fans of the racket, the football movement is more charm. However, we are still a football, not a fans on the scene. The relationship between VC and C also includes similar truth.

[Kingofark's harvest]:

Go out, don't kick the object.

[reference]:

Terms 9, 24, 39, 41; Terms 4.

Terms 7. Learning Class is not difficult, Template, STL, Generic Programming is alive - it is difficult to have a long-term adherence to practice and spare no effort;

Interpretation]:

Haha, this sentence is indeed that I encourage beginners. After all, from the technical statement, STL and model technology does not have to be "thus" as "thus" like the famous host Cui Yongyuan.

I think that long-term adherence to the practice and spare power of Expo group is a fundamental study of a programmer. Although everyone knows this is a little perfect expectation, it is expectation rather than expectations - it is always possible.

[Kingofark's harvest]:

It should be carefully studied and experienced a song of the U2 band "I'm Still Haven't Found What I'm Looking For", so that when you stop your life, you will not forget your own Everything pursued.

Terms 8. If it is not a genius, don't want to play games - you think you have done it, in fact, your C level does not change with your customs clearance - it can always remember: learn C is In order to compile the game;

Interpretation]:

Just say three points:

(1) Www.1cplusplusstreet.com has a lot of interesting content to learn C , quite good;

(2) A lot of famous games are also available in active code;

(3) The resources of Open Source are also a great place to learn.

[Kingofark's harvest]:

People who are more keen on video games have about two "customs clearance methods":

(1) Cool game -> play games -> I want to play games -> I still want to play games-> I want to play games -> Become super super super ... (sweat) Players;

(2) Cool game -> play the game -> change the game -> The production of the game is curious -> Drilling the development of the game -> Become a potential / powerful amateur / professional game developer. [reference]:

Terms 18.

Terms 9. Looking at the Visual C , you can't learn C language;

Interpretation]:

One sentence: The integrated development environment is in the manufacturer's hand; the language is in your own hands.

[Kingofark's harvest]:

"Oh, you read a lot of VC books? It is very good. Yes, the way, will you use C ?"

[reference]:

Terms 6, 24, 39, 41; Terms 4.

Terms 10. Impetuous people are easy to say: XX language is not ok, you should learn y; - is yourself! ?

Terms 11. Impetuous people are easy to ask: What should I learn; - don't ask, learn is right;

Terms 12. The impetuous people are easy to ask: XX has a money; - I suggest you to grab bank;

Terms 13. Impetuous people are easy to say: I want Chinese version! I can't speak English! Don't you? Learn!

Terms 14. Improved people are easy to ask: XX and YY which is good; - tell you, all - as long as you learn;

Terms 15. Impetuous people are divided into two: a) people who are only waiting to be careless; b) only learn without persistence;

Terms 49. Please don't be impetuous;

Interpretation]:

Write down such a terms, it must not be avoided to recruit dismissive or saliva, but I am indeed in the forum: "XX language is not ok, I should learn yy!", "What should I learn?" "Is there a money in XX?", "I want the Chinese version! I can't do it in English!" A paragraph in " Self-order":

- "If a iron room is never window, there are many sleeping people, soon they are dead, but they are not felt to die, and they are not sad. Now you are I am awake, awake more awake, the unfortunate little minority is unavailable, you are doing it? "

- "However, since the few people, you can't say that there is no hope of this rail house."

I think, I am not only willing to do that big people, but also say: "Maybe our iron room has at least windows and gates."

[Kingofark's harvest]:

Society with a peaceful mindset.

[reference]:

Terms 15-23.

Terms 16. Hang the fashionable technology in the mouth, it is better to remember the outdated technique;

Interpretation]:

It still emphasizes a person to learn to practice.

I always heard a lot of people who have already seen a certain technology, and I have learned it. Among them, objects that have been attacked are like DOS, Mode 13h, Win3.1, VGA, and even Win95, Pascal, C, C , etc. These people are impetuous (see Terms 10), one flavor pursue "new" technology, do not know "new" technology, "new" theory is not inheriting the essence of the former wisdom. An example of my most familiar is the "Michael Abrash's Graphics Programming Black Book Special Edition" of Michael Abrash. This is full of discussion and research on the coloring of VGA, 286, MODE X, 256 color in this classic masterpiece.

"Ah, what you said is really outdated," I started to hear someone said.

Has it outdated? My answer is both affirmative and negative.

Indeed, with the rapid development of computer technology, it may not need to use Mode X to write a graphic program; yes, 256 colors have not been angry; good, Win3.1 has become Yellow flowers yesterday. However, friends who have a "high" friend, don't forget the true purpose of learning.

When I was young, I often happened to school, and my achievements were not good. Every time the exam score is not ideal, I always have a desperate worries for future learning. Every time, my father always patted my head and said: "It doesn't matter, I will work hard in the future. It is a kind of hard work. The purpose of learning is to hone your will. By learning the process With a variety of tests, they will slowly become able to overcome the various things encountered in their lives. The exam is also an hard work, nothing is worried, don't be afraid. "

"Michael Abrash's Graphics Programming Black Book Special Edition" contains author Michael Abrash immersed graphics development field for decades of experience, its profound optimization concept is the real reason for winning readers, experts to tear the sound (familiar with quake Friends of video games must also know that Michael Abrash's contribution is. I tried to say the hero master today, who dared to stand contest: "I don't need to optimize technology?"

Don't you need it? do you need? Don't you need it? do you need? Don't you need it? ......

Hey, I think the answer to this question is understanding.

[Kingofark's harvest]:

Even if the feces are not worthless, let alone a bunch of gold in the diamond.

转载请注明原文地址:https://www.9cbs.com/read-404.html

New Post(0)