Use the function sprintf. See here for example.
- std::string std::ostringstream. , ( , QUrl).
char mytext[ 256 ];
int randomValue = 12345;
sprintf( "http://blogsearch.google.com/blogsearch?q=C&start=%d&num=1&output=rss", randomValue );
% d, . sprintf randomValue, . . .
: , Qt, .