stupid array initialization
-
hi everyone.. i'm having this stupid problem that i don't know how to solve: DWORD Size = GetFileSize(..); int Arr[Size]; the problem is that Arr doesn't accept Size to be the number of elements!!!
-
hi everyone.. i'm having this stupid problem that i don't know how to solve: DWORD Size = GetFileSize(..); int Arr[Size]; the problem is that Arr doesn't accept Size to be the number of elements!!!
int *pArr = new int[Size];
-
int *pArr = new int[Size];
Actually you should use a
BYTE
array. Using anint
array allocated 4 times the necessary space. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- -
hi everyone.. i'm having this stupid problem that i don't know how to solve: DWORD Size = GetFileSize(..); int Arr[Size]; the problem is that Arr doesn't accept Size to be the number of elements!!!
-
int *pArr = new int[Size];
Not sure in C++ (yet anyways) but in VB there is a keyword to resize the array and to save the info in the array. Killer coding ninja monkeys do exsist ! There is no spoon? How the frell do I eat my frosted mini-wheats