feeef
Well-known member
Hi,
I have a technical question about C++ coding. I don't know if it's the best place to ask this kind of thing here but I know that some of you are expert in classic programming so I ask!
In my effort to do a JSON lib for our old macs running 7+ systems, I ended up with a problem and I cannot find a solution.
What I want to do is create an empty Array and make it grow by appending new elements to it (I don't know how many elements). At the moments my elements are just strings and I try to declare a vector for that purpose :
But I always end up with an error saying "illegal template argument(s)" pointing me to the closing '>' character.
I am still learning and maybe vectors are not the best way to do what I want to do so I am open to any good advice!
I have a technical question about C++ coding. I don't know if it's the best place to ask this kind of thing here but I know that some of you are expert in classic programming so I ask!
In my effort to do a JSON lib for our old macs running 7+ systems, I ended up with a problem and I cannot find a solution.
What I want to do is create an empty Array and make it grow by appending new elements to it (I don't know how many elements). At the moments my elements are just strings and I try to declare a vector for that purpose :
Code:
#include
// ... and somewhere inside my method
vector arr;
I am still learning and maybe vectors are not the best way to do what I want to do so I am open to any good advice!