Arrays and Multilines
Posted: Wed Oct 21, 2009 9:37 pm
C/CPP coders still know about how helpfull it is, to create an array and fill it directly with datas!
The same helpfull thing for getting more readable sources with less mistakes (bugs) and cleaner codingstyle, is to write things not in just only one codeline... still miss the possibility to write stuff in mulilines!
best regards
The same helpfull thing for getting more readable sources with less mistakes (bugs) and cleaner codingstyle, is to write things not in just only one codeline... still miss the possibility to write stuff in mulilines!
Code: Select all
Wish to fill arrays directly with datas like following idea... (ofcourse multilines would be nice as it is my 2nd wish ^^)
Dim Map( 10, 10 ) = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
}
Code: Select all
Wish to write code in multilines... more readable source == less erros/mistakes
HWND CreateWindow(
LPCTSTR lpClassName,
LPCTSTR lpWindowName,
DWORD dwStyle,
int x,
int y,
int nWidth,
int nHeight,
HWND hWndParent,
HMENU hMenu,
HINSTANCE hInstance,
LPVOID lpParam
);