Algorithm research and development---cross the path of the heart

Source: Internet
Author: User



Whether to see this kind of thing has a head big feeling:
Ntf_hr (M_pbaseclass->setstr (M_hgprog.hfcoef, (const float*) hfcoef));

You're going to be curious. NTF_HR () What is this? Function? No, it looks so ugly.

If you see a bunch of stuff like this:
#ifndef _crt_wperror_defined
#define _crt_wperror_defined
{_wperror (_in_opt_z_ const wchar_t * _errmsg);
_fgetwc_nolock (_inout_ FILE * _file);
_fputwc_nolock (_in_ wchar_t _ch, _inout_ FILE * _file); \
_ungetwc_nolock (_in_ wint_t _ch, _inout_ FILE * _file);}
Some of the great God wrote even do not change line, very good appearance, looked all drunk;


no nonsense, here's a summary of the role and usage of some macro definitions (basic usage does not say, The University C language teacher told you: the
macro definition is intended to provide a programmer with a certain degree of convenience in programming, and to a certain extent, improve the efficiency of the program, may be just beginning to contact the program is not very understanding, but with depth, you will be deeply aware of its existence of rationality;
If you do not understand the above code: to simplify some, Give you a sample example as follow:
#define MYTEST (p) {int jj=p;if (jj>0) {cout << "I love C + +" & lt;< Endl;} \
                              else if (jj<0) cout << "Do not Hate C + +" << Endl \
                              else cout << "Fuck C + +" << Endl;
If you write a test function as follows:
Int main ()
{
MYTEST;
MYTEST (0);
MYTEST ( -100);

}
Look the result,you is excited to see it, it's rather funny, isn ' t it?
Secretly tell you slash \ Is nothing more than a newline character; you wonder what the P here is? Hehe, he is a code name, p is what type, have you decide, it can be a handle, any type of variable, can also be a different type of data structure;


Sentiment: Sometimes it is not difficult to come too suddenly, but you do not have the courage to challenge difficulties; as a software Engineer, many questions can be found in philosophy, keeping a sober mind and constantly charging yourself, you will go farther ...

Algorithm research and development---cross the path of the heart

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.