// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <string>
#include <cctype>

using namespace std;

int main()
{
    string s = "bla-bla-bla";
    string s2(s.length(), ' ');
    for(size_t i = 0; i < s.length(); i++)
        if(isalpha(s[i]))
            s2[i] = (i == 0) ? toupper(s[i]) : s[i];
    cout << s2 << endl;
    return 0;
}
