M
Marcelo
Hello,
I would like to know if it is possible to implement in C the Vector class of
java. I would like to have and object (or something like) that makes this:
Let's call v the vector:
v[0] is a String
v[1] is an int
v[2] is an array.
....etc ...
I would like to know if there is another possibility than creating a struct.
In java, there is a vector implementation for this (with an iterator variable).
Besides, java permits to test the type of the object. Is it possible to do it in
C (having something like "instanceof") ??
thank you very much for your help,
Marcelo
I would like to know if it is possible to implement in C the Vector class of
java. I would like to have and object (or something like) that makes this:
Let's call v the vector:
v[0] is a String
v[1] is an int
v[2] is an array.
....etc ...
I would like to know if there is another possibility than creating a struct.
In java, there is a vector implementation for this (with an iterator variable).
Besides, java permits to test the type of the object. Is it possible to do it in
C (having something like "instanceof") ??
thank you very much for your help,
Marcelo