- Статус
- Оффлайн
- Регистрация
- 21 Фев 2019
- Сообщения
- 234
- Реакции
- 207
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
all credits @rollraw
? menu
? conventions
1) prefix classes with 'C' and interfaces classes 'I'? menu
? conventions
C++:
class CSomeClass;
class ISomeInterface;
C++:
struct SomeStruct_t;
C++:
enum ESomeEnum
C++:
#define SOMEMACROS
C++:
#define M_SOMEMATHMACROS
? code style
1) all curly braces should be on it's own line
C++:
if (true)
{
while (true)
{
// something...
}
}
C++:
bool bSomeBool; int iSomeInt; float flSomeFloat; double dbSomeDouble;
char chSomeSymbol; const char* szSomeString (std::string too);
BYTE dSomeByte; DWORD dwSomeDword; unsigned uSomeInt + type (e.g. unsigned long ulOffset);
CSomeClass someClass; CSomeClass* pSomeClass;
C++:
enum ESomeEnum : short
C++:
SOME_ENUM_MEMBER = 0
4.1) additional: file names preferably be lowercase
5) use number literal's (uppercase)
C++:
long lSomeLong = 0L;
unsigned int uSomeOffset = 0x0; // hex
unsigned int uSomeInt = 0U;
unsigned long ulSomeLong = 0UL;
C++:
void* pSomeHandle = const_cast<void*>(pSomeConstHandle);
int iSomeInt = static_cast<int>(flSomeFloat);
int* pSomePointer = *reinterpret_cast<int**>(pSomeAddress);
? preprocessor definitions
1) _DEBUG - disable string encryption and activate external console logging (automatic switches with compilation configuration)
2) DEBUG_CONSOLE - activate external console logging but deactivate file logging
? prerequisites
1)
Пожалуйста, авторизуйтесь для просмотра ссылки.
2)
Пожалуйста, авторизуйтесь для просмотра ссылки.
? Download
Пожалуйста, авторизуйтесь для просмотра ссылки.
Пожалуйста, авторизуйтесь для просмотра ссылки.
VT no need
Последнее редактирование:
