How to compose a string from ascii values


I have :
int a=47
int b=49
I want to have a string with some line like this (it does not compile)
string C=char(a)+"."+char(c);

Neither I can do:
string C= string((char)a)+"."+string((char)b);

Sincelery I dont know how to write this stupid thing.
Please help
string doesn't have a constructor with a single character
Here are two solutions:
1
2
string C=  char(a)+string(".")+char(b);
string C = string() + char(a) + "." + char(b);
Thank you very much
Topic archived. No new replies allowed.