M
Mike Copeland
Is there a type-safe and simple way to prepend some data to a string?
For example, I have:
string str1;
str1 = "swim"; // this data varies
if(str1.length() < 7)
{
// insert blanks in front of str1 to produce " swim"
}
Please advise. TIA
For example, I have:
string str1;
str1 = "swim"; // this data varies
if(str1.length() < 7)
{
// insert blanks in front of str1 to produce " swim"
}
Please advise. TIA