I have :
string a[] = {"akdhska","asjd","askjdh"};
Is there any way to get the number of elements in this array?
As a resolution of this I am doing the following:
vector<string> a;
a.insert(a.end(),"test1"); // or a.push_back("test1")
a.insert(a.end(),"test");
a.insert(a.end(),"test12");
a.insert(a.end(),"test123");
int len = a.size();