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...
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...