C++

Miscellaneous Forums/General Discussion/C++

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

-I absolutely hate the semi colon at the end of each line

It's pretty easy to get used to over time, fortunately.

Speaking of arrays, don't they have special methods? like append ect? where is a list of these?

I'm not sure of all the array classes, but one is std::vector, which is dynamically resized as you add new values, in an efficient way. The fastest possible arrays in C++ are native arrays:

float myArray[100];  //static array

Or:
float *myArray; //or "float myArray[];"
myArray = new float[100];
delete[] myArray;


This type of array is the fastest, but the most simple and most unprotected way to use arrays. There's no bounds checking, so if you write to element #129 in a 100 size array, there will be no error (just unknown behavior). But because it doesn't have to check the bounds, etc., etc., it's very fast. Basically it's direct memory access.