1) There's no such type as String or STring or strinG or striNG or strIng or sTrInG.
2) The simplest way to add elements to a vector is by using a vector's push_back() method. There is also a copy <algorithm> that you might find useful, e.g.
Code:
#include<iostream>
#include<string>
#include<vector>
#include<algorithm> //copy(), back_inserter
using namespace std;
int main()
{
vector<string> v;
v.push_back("hello");
v.push_back("world");
string arr[] = {"hello", "moon"};
int size = 2;
vector<string> v2;
v2.push_back("goodbye");
v2.push_back("world");
copy(&arr[0], &arr[size], back_inserter(v));
//Specifies the range, which includes first but excludes last, i.e.
//the elements from start to end - 1 are the elements in the range.
//Back_inserter inserts the range at the back of v.
copy(v2.begin(), v2.end(), back_inserter(v));
vector<string>::iterator iter = v.begin(); //'iter' is like a pointer to v.begin();
while(iter != v.end())
{
cout<<*iter<<" ";
++iter;
}
cout<<"."<<endl;
return 0;
}
3) If you can legally write this:
String* f[] = Directory::GetFiles(sDir);
then you can't write this:
vector<String*> f = Directory::GetFiles(sDir);
What type is f in the first line? What type is f in the second line?
More importantly what type does Directory::GetFiles(sDir) return? Whatever type it returns is the type of the variable you must declare in order to store the function's return value in that variable.
You need to read a tutorial on vectors. Just guessing what function's are available, e.g opertator=, is not usually going to work in C++.