I am new to C++ i am used to PHP and Java. currently for a school project i need to make a function which will be able to return a string array.
Currently i have this in my header.
Config.h
string[] getVehicles(void);
Config.cpp
string[] Config::getVehicles(){
string test[5];
test[0] = "test0";
test[1] = "test1";
test[2] = "test2";
test[3] = "test3";
test[4] = "test4";
return test;}
now obviously this does not work but thats the idea what i am string to do. in Java this would be the way to do it. Ive tried googling my prob but i didnt come across any answers that were clear to be honest.