Hi,when I attempt to run my code in unix it returns an error saying that 'data' is not a member of the vector in my toUpper function, but it runs fine when I run it else where, I would appreciate any help. Thanks.
Make sure your compiler is up-to date enough and that you have at least enabled C++11 features. With GCC you do this by passing -std=c++11 to the compiler.
Also be aware that C++ doesn't allow Variable Length Arrays. Array sizes must be compile time constants.
What exactly are you trying to do in you toUpper() function? If you're just trying to convert the whole vector to uppercase why not just use std::transform() instead of all the copying?