If you need a fixed-length array, you should be using std::tr1::array instead!
Of course, it isn't dynamic and must be determined at compile time.
And if it isn't determined at compile time, it's dynamic!
Um, I was talking about variable-length arrays
edit:
like the original poster's question.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
That's easy. Using an array is cleaner. It acts like a fixed length array. Why dynamically allocate inside a vector?
An array acts like fixed, and vector does not?
I don't see the difference!
Originally Posted by Adak
io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
Originally Posted by Salem
You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.
Outside of your DOS world, your header file is meaningless.