AFAIK you'll have to loop through the strings. It's pretty much the same process for character arrays or C++ strings -
Code:
#include <iostream>
#include <algorithm>
#include <string>
#include <cstdlib>
using namespace std;
void mytoupper(char& c)
{
c-=32;
}
int main()
{
string name1 = "zen";
char name2 []= "zen";
//c string
for_each(&name2[0],&name2[strlen(name2)],mytoupper);
//c++ string
for_each(name1.begin(),name1.end(),mytoupper);
cout << name1 << endl << name2;
return 0;
}
You could use normal for loops and the standard library toupper (I was bored).