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