Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWMP Plugin Activation Pin
Lafraia26-Aug-05 4:39
Lafraia26-Aug-05 4:39 
QuestionNaming convention Pin
Eytukan26-Aug-05 4:37
Eytukan26-Aug-05 4:37 
GeneralRe: Naming convention Pin
sunit526-Aug-05 4:43
sunit526-Aug-05 4:43 
GeneralRe: Naming convention Pin
Eytukan26-Aug-05 4:53
Eytukan26-Aug-05 4:53 
AnswerRe: Naming convention Pin
David Crow26-Aug-05 4:55
David Crow26-Aug-05 4:55 
AnswerRe: Naming convention Pin
Michael P Butler26-Aug-05 5:10
Michael P Butler26-Aug-05 5:10 
GeneralRe: Naming convention Pin
David Crow26-Aug-05 6:09
David Crow26-Aug-05 6:09 
AnswerRe: Naming convention Pin
toxcct26-Aug-05 5:10
toxcct26-Aug-05 5:10 
sunit i quite right !

however, i could had this :

the most used is certainly the hungarian notation.
here is the main points to know about it.

a letter can prefix the name of a variable to show its type :
i or n     integer
f          float
d          double
l          long
c          character
b          boolean
dw         double word
w          word
by or byte byte
sz         C-style null-terminated string
str        C++ string object
h          handle
v          vector
pt         point
rgb        RGB triplet
p          pointer to
r          reference to
u          unsigned
a or ary   array of
m_         member variable
g_         global variable
s_         static variable


the name of an identifier must be the most explicit as possible.
you can find different styles, such as getMachineState(), GetMachineState(), get_machine_state(), etc...
upper case identifiers are in general for constants...

to this, there are also some specific rules, but the most important is that you should select your own, and follow them !



TOXCCT >>> GEII power
[toxcct][VisualCalc]

-- modified at 11:11 Friday 26th August, 2005
AnswerRe: Naming convention Pin
Roger Allen26-Aug-05 6:14
Roger Allen26-Aug-05 6:14 
AnswerRe: Naming convention Pin
Eytukan26-Aug-05 6:47
Eytukan26-Aug-05 6:47 
QuestionConnected users ? Pin
pc_dev26-Aug-05 4:29
pc_dev26-Aug-05 4:29 
AnswerRe: Connected users ? Pin
David Crow26-Aug-05 4:51
David Crow26-Aug-05 4:51 
JokeFunny C++ code Pin
Alex_Y26-Aug-05 4:18
Alex_Y26-Aug-05 4:18 
GeneralRe: Funny C++ code Pin
Joel Holdsworth26-Aug-05 4:37
Joel Holdsworth26-Aug-05 4:37 
GeneralRe: Funny C++ code Pin
Anonymous26-Aug-05 5:05
Anonymous26-Aug-05 5:05 
AnswerRe: Funny C++ code Pin
Alex_Y26-Aug-05 5:17
Alex_Y26-Aug-05 5:17 
GeneralRe: Funny C++ code Pin
sunit526-Aug-05 5:00
sunit526-Aug-05 5:00 
AnswerRe: AnswerFunny C++ code Pin
Alex_Y26-Aug-05 5:16
Alex_Y26-Aug-05 5:16 
GeneralRe: Funny C++ code Pin
Alex_Y26-Aug-05 5:18
Alex_Y26-Aug-05 5:18 
Questionnew operator Pin
Ali Tavakol26-Aug-05 3:35
Ali Tavakol26-Aug-05 3:35 
AnswerRe: new operator Pin
Chris Losinger26-Aug-05 3:57
professionalChris Losinger26-Aug-05 3:57 
AnswerRe: new operator Pin
namaskaaram26-Aug-05 4:01
namaskaaram26-Aug-05 4:01 
AnswerRe: new operator Pin
Emilio Garavaglia26-Aug-05 4:12
Emilio Garavaglia26-Aug-05 4:12 
GeneralRe: new operator Pin
toxcct26-Aug-05 4:20
toxcct26-Aug-05 4:20 
GeneralRe: new operator Pin
Tim Smith26-Aug-05 6:06
Tim Smith26-Aug-05 6:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.