Concat integer value with string in vc++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • visweswaran2830
    New Member
    • Nov 2009
    • 92

    Concat integer value with string in vc++

    Hi,
    i want to concat int value with string val in vc++..

    eg:

    for(ii=0;ii<100 ;ii++)
    {

    strcpy(fname,"I mg");
    strcat(fname,CS tring(ii));
    strcat(fname,". jpg");
    MessageBox(fnam e);
    }


    Here I want to concat ii value with string fname.

    Output should be:

    Img1.jpg
    Img2jpg
    Img3.jpg
    .
    .
    .
    .
    Img100.jpg

    How can i achieve this...
Working...