Quote:
|
Originally Posted by Cache
I usually start the variable names with the first letter(s) of it's type.
e.g:
char chLetter;
char szText[10];
char* pszText;
std::string strText;
int iMax;
bool bIsSomething;
... ect.
|
Yeah, that's usually the way I do it too. It's a good habit because then you know what type the var is. I think that's the way professionals do it as well don't they? Simply because it's easier to understand the code when looking at soemone elses. Sometimes, mine are all over the place
