[ThinkingInC ++] 47. Regarding the Use of macros, we explored the disadvantages of using macros. thinkinginc47

Source: Internet
Author: User

[ThinkingInC ++] 47. Regarding the Use of macros, we explored the disadvantages of using macros. thinkinginc47

/*** Book: [ThinkingInC ++] * function: describes the use of macros. * Time: 07:50:54, January 1, September 11, 2014 * Author: cutter_point */# include ".. /require. h "# include <fstream> using namespace std; // here we use BAND (x) to replace the subsequent functions # define BAND (x)> 5 & (x) <10 )? (X): 0) int main () {ofstream out ("macro.txt"); assure (out, "macro.txt"); for (int I = 4; I <11; + + I) {int a = I; out <"a =" <a <endl <'\ T'; // be careful, remember that the result expansion after macro replacement should be like this // (+ + a)> 5 & (+ + a) <10 )? (++ A): 0) three times of calling ++ a, // Yes. Once the code is executed, the problem immediately becomes out. <"BAND (++) = "<BAND (++ a) <endl; out <" \ t a = "<a <endl;} return 0;}/* execution result: a = 4 BAND (++ a) = 0 a = 5a = 5 BAND (++ a) = 8 a = 8a = 6 BAND (++) = 9 a = 9a = 7 BAND (++ a) = 10 a = 10a = 8 BAND (++ a) = 0 a = 10a = 9 BAND (++) = 0 a = 11a = 10 BAND (++ a) = 0 a = 12 */


Reasons for liking Wang Lihong

It can be said that I am a little similar to the landlord, but it is different that I have never felt like Jay Chou. I just like the melody of some of his songs. It is really shocking. The melody is too beautiful, but I dare not compliment it.
What about Wang Lihong? In my past, although I didn't like Jay Chou, I also felt that Jay Chou's song was better than him. Over the past few years, after seeing Wang Lihong's new songs, such as sun and moon in his heart, love in the city, and change himself, I found that this person is not what I imagined. Indeed, as the landlord said, his songs convey a spirit. For example, you and me are very creative, And the lyrics are very close to reality, which gives us the motivation to work hard.
Later, he gradually began to pay attention to Wang Lihong and found that he was a very friendly singer, very low-key and kind. However, his hard work always deserves everyone's learning, his efforts, and his ideal. Recently, his new album was a face-to-face change. Although he didn't feel very good about rock, I saw that he was changing. He may not do well in breaking through, but I still admire him.
How does Jay Chou say? His things are increasingly commercialized, and the loss of the new album's non-mainstream is an example.

What is the difference between the intermediate micro-macro and the primary micro-macro? Which of the following is the advanced micro-level book? Postgraduate use

Recommendation of good micro-macro-economics books (from elementary to advanced) [sharing honor]
I. Entry Material:

1. mankun's "Principles of Economics" was written in the next book, at 88 yuan. Professor Liang Xiaomin translated. Mankun is a senior scholar of Harvard and a talented scholar. He belongs to the neo-classical Cairns School and focuses on macroeconomic analysis.

This book is written for first-year students. It is characterized by simple writing, simple reasoning, and interesting language. The interface is very friendly, citing a large number of cases and newspapers and abstracts, which are extremely close to life, such as why the Fed exists, how it works, and how Greenspan cut interest rates to cope with economic downturn. This book has hardly used mathematics, and has come up with the "10 principles of Economics" for beginners. It is extremely convenient for those who have never been familiar with economics to read it. This book can be used to understand the basic thinking and common basic principles of economics and view economic phenomena in life. It can be seen that economics Functions and is interesting, far beyond imagination. Recommended for beginners. At present, some professors in China have compiled the textbook "Western Economics" based on this book. The word "10 principles of Economics" appears in the book, and it can be seen at a glance that it is copied.

2. Samuel Economics)

Samulson, a representative of the neo-classical integrated school, became the first American to receive the Nobel Economics Award in 1970. The research covers multiple fields of economics, statistics, and mathematics, and has unique insights into political economics, sectoral economics, and technical economics. The analysis frameworks and methods used in various textbooks of economics are as follows, most of them are the theoretical frameworks of the "neo-classical Integrated School" developed by his "micro-economic analysis" in 1947, which combines the keyenism with the traditional micro-economics. He has always been keen to apply mathematical tools to the analysis of static equilibrium and dynamic processes, and to study economics in the form of physics and mathematical reasoning. At present, the mathematical theory of economics is widely used.

Economics is the first release of schedon in 1948. The version 16th is now available all over the world. In 1950s, Professor Gao Hongye translated the English version 10th and published the business press hall in 1981. The 16th version of the market is written in conjunction with nordehouse, translated by Professor Xiao Shen and published in two single-row versions: Macro Economics and Micro economics.

The book has a magnificent structure and a huge space. It is profound and profound. Penetrate into the economic insights of laisa for decades. There are lines between the lines, each with deep meaning. Among them, words such as "enthusiastic heart, calm mind" and "correlation may not cause and effect" can be described as Lao Tzu in economics. After reading this book, you can understand the location and Analysis Framework of the questions discussed in economics in the economic system, and have a complete understanding framework for economics. The knowledge is complex and there is a system framework, which is suitable for further study in the future. The deeper you learn, the more important this framework is. Although the framework still has faults in the micro-foundation of macro-economics, it is a good framework. The Chinese version of this book is released in English. We recommend that you read the English version directly.

3. maglizi Economics and a series of auxiliary teaching materials. Maglizi has made great achievements in Information Economics. This book can be used as a supplement to the previous two. The economics involved in the former two are mainly based on price theory and marginal analysis, excluding Asymmetric Information Economics and uncertainty analysis. Maglizi's economics fills the gap between the first two.

Despite the different policy tendencies of the three authors, the textbooks show a little more characteristics of the kenenism. In general, the textbooks are quite objective and fair. It is suitable for beginners.

4. Economics, principles, problems and policies, principles and problems of economics, cases of economics, economic sketches, paradox of economics, and economics of Social Issues. This kind of book is characterized by asking questions first and then discussing the principles. It mainly focuses on social issues and gradually explains the principles. The level and content are mostly good. It only lacks a system and framework, it is suitable for economists to learn more.

5. the textbook "Western Economics" compiled by Chinese teachers: currently, the textbooks "Western Economics" or "Principles of Economics" are written by Chinese universities. Such as Gao Hongye, Li Yining, Song chengxian, Liang Xiaomin, Zhu Xiqing, Yin Bocheng, AND Si Chunlin. However, they are far inferior to foreign textbooks. Among them, Song chengxian's book "Western Economics" has inserted a piece of Marx's theory of land rent in a bold box to illustrate the mistakes in the teaching, which is really ridiculous.

Note:

1. the more basic the teaching materials are, the more in-depth they are.

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.