Vexcode pro strings dont work?

I updated my vexcode pro to version 2.0.5, and now whenever I put std::string it says “No type named ‘string’ in namespace ‘std’”. Is there something else I need to do to use strings?

Try this:

8 Likes

Our team had this same issue, and we were able to resolve it using the thread linked by trontech.

@jpearman Is there a reason that <string.h> is included in the vex.h file but not <string>? Reading this stack overflow thread, it seems like <string> would be much more useful…

I could be missing something, I’m not very good with c++ lol.

3 Likes

For the same reason we don’t include < vector> or < iostream>, we don’t include any C++ headers, we leave it to you to include what you may need.

4 Likes