C++ is like being in a candy store, full of a huge variety of bright, shiny treats that can blow your hand off if you don’t pay attention.
- Finishing up adding multiple sound capability per test attempt. Because I’ve been away from C++ for a while and I like to try new things, I poked around with tuples for a while, which are kind of neat. Then I decided to put them into a vector and access them. That lead to code like this:
-
vector<FOURF_SAMPLE_TUPLE>::iterator it = myVector.begin(); while(it != myVector.end()){ float sourceX = get<EMITTER_X>(*it); float sourceY = get<EMITTER_Y>(*it); }
- That is *not* the most intuitive code I’ve seen. I mean, it makes sense, and given the limited set of overloadable characters, ok. But I think “[” and “]” would have been a better choice than “<” and “>”.
-
- Got the multi sound playing and the results output to .csv. Next is to get the xml setup files running.