Skip to main content
Home Forums 68kMLA C++ 'vector' question - System 7 — #1
Post #1 by feeef
Source Forum68kMLA
CategoryDevelopment
Post DateSat, 19 Jan 2013 - 21:25
Original URLhttps://68kmla.org/bb/threads/c-vector-question-system-7.27114/
Post
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 :

Code:
#include 

// ... and somewhere inside my method
vector arr;
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!

mp.ls