Vector class in c

Can the vector class be used in C? I use it all the time in C++ but I'm getting errors (like vector not declared) when I use it in C. I'm wondering if I need to update my libraries or if C just doesn't provide the use of this class. Thanks for your help.
Nope, the STL is written in C++. (To make use of templates. :D)
Last edited on
if C just doesn't provide the use of this class.


C doesn't provide the use of ANY classes. classes are a C++ thing, C doesn't have them.

Plus, yeah, vector uses templates.
There do exist ways to write such things in C, though.

[edit]
Limited versions, mind you -- nothing with the ease of use, power, and versatility of C++
Last edited on
Topic archived. No new replies allowed.