Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Pow function in C language is the abbreviation of that word.
Pow function in C language is the abbreviation of that word.
These are abbreviations in English. If your English is poor, you must rely on your usual accumulation. There is no other way.

Short for buffbuffer, which means buffer.

Sum total, meaning sum, is generally used for calculation and use.

Deno (demo, right ) the significance of demonstration

Area means area, right?

Cloum can't do this. There seems to be no such word (I looked it up in the dictionary for you).

sequential probability ratio test,sprt

This should be sorting, right? Significance of arrangement, classification and selection.

Prime number originally means youth and essence.

These are all decided according to the naming habits. You can refer to the following information: (It will definitely help you)

Hungarian nomenclature

Because Hungarian style information is redundant and conflicts with other clauses in the coding specification, its existence is limited to VC.

Here are some rules for its naming:

1. Class names C+ capitalized word combinations, usually noun phrases, generally without underscores.

Such as CMyClass

2 Function (class member function) is a combination of words with the first capital letter. Usually, phrases with verb-object structure do not contain underscores.

Such as getname (), postmessage (), saveprofile (), etc.

3. A combination of words starting with the member variable m_, lowercase type mark+uppercase initial, usually a noun phrase.

Among them, lowercase type mark, DWORD abbreviated as dw, int marked as I, usigned int marked as U or N, HANDLE marked as H, Window marked as wnd, string ending with 0 marked as sz, SZ and CString marked as str.

Such as m_szName, m_strName, m_nAge.

4. Global variables are the same as member variables, except that m_ is changed to g_.

5. Static variables are the same as member variables, except that m_ is changed to s_.

6. Parameters are the same as member variables, except that m_ is removed and there is no prefix such as SaveProfile(NewProfile).

7. Pointer, usually called p before the variable, the pointer of the pointer is the beginning of PP.

Hungarian Nomenclature Programming Based on MS Mode: Hungarian Symbolic Representation

Hungarian symbols include many conventions related to the following naming:

(1) variable

(2) Function

(3) Types and constants

(4) Class

(5) parameters

Description of prefix code of Hungarian symbol representation;

**************************************************************************

Prefix data type (basic type)

C character

Byte by byte

N short integers and integers (representing a number)

I integer

X, y short integer (usually used in x and y coordinates)

CX, CY short integer (usually used to represent the length of x and y, and c stands for count)

Boolean type

W UINT (unsigned number) and WORD (unsigned word)

L LONG (long integer)

DW DWORD (unsigned long integer)

FN function pointer

S string

A string ending in 0 bytes.

LP 32-bit long integer pointer

H number (usually used to represent Windows objects)

MSG message

**************************************************************************

Naming of variables:

Using Hungarian symbols, variables can be represented by prefix codes in the above table. In addition, when a variable consists of one or several sub-names, each sub-name should start with a capital letter. under

Faces are a few examples:

Char * szfileName// nulla-terminated string: a string terminated by 0.

Int * lpidate// 32-bit pointer to int: a 32-bit long pointer to an integer variable.

Boolean, bSemaphore// A Boolean value

WORD dwMaxCount//32-bit unsigned word

Although we know that the local variables of a function are not explained, some individuals point out that global variables must start with g_:

Int g _ iXPos// global x position

Int g _ iTimer// global y position

Char * g _ SZ string// a global null termination string.

Naming of function:

Functions and variables are named in the same way, except that there is no prefix. In other words, the first letter of a child name should be capitalized. Here are a few examples:

int PlotPixel(int ix,int iy,int IC);

void * MemScan(char * SZ string);

In addition, underlining is illegal. For example, the following function name representations are invalid Hungarian representations:

int Get_Pixel(int ix,int iy);

Naming of types and constants:

All types and constants are uppercase letters, but underscores are allowed in the names. For example:

const LONG NUM _ SECTORS = 100; //Constant of //c+++style

# define MAX _ CELLS 64//C style constants.

# define powerunit100; //C style constant

Typedef unsigned character UCHAR// user-defined type

Naming of classes

The convention of class naming may be a bit troublesome. But I also see many people using this convention and supplementing it independently. In any case, all C++ classes must be prefixed with uppercase C and classes.

The first letter of each sub-name of a name must be capitalized:

Class C vector//vector means vector in Chinese.

{

public

CVector();

{ IX = iy = iz = imagnitude = 0; }//Chinese order of magnitude means size

CVector(int x,int y,int z)

{ IX = x; iy = y; iz = z; }

......

Private:

int ix,iy,iz; //The position of the vector

Image; //The size of the vector

......

}

Parameter naming

The naming convention of function parameters is the same as that of standard variables. But this is not always the case. For example:

UCHAR GetPixel(int x,int y);

In this case, the more accurate Hungarian function prototype is:

UCHAR GetPixel(int ix,int iy);