Sorry, but there are no more tags available to filter with.
-
Hmmm... So much for my struggle that even after having learned dynamic memory allocation it took me a couple of hours to figure this out. This may not be interesting for developers using .net or Java but atleast for students learning C/C++, it is. So how do you create an Array of char* or C strings?...
-
Ever wondered how you can create a resizable array in C/C++? I will not be discussing the C stuff here since I'm not at all that good in C. So let's try to take a look on how to make dynamic memory allocation in C++. 1 2 3 4 5 6 7 8 9 10 11 class MyClass { private : int *myvararray; public : MyClass...
-
Whew! Finally I was able to solve the bug I was tring to fix in my game. To explain briefly, I have an std::map<char*, BITMAP*> which is a static member of a class. Now, I have a Manager class which loads resources that somehow looked like this 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 BITMAP*...