string
-
It may be simple question but i need an urgent help. I have to use some image sequence as the input to my code. for example: image001.bmp image002.bmp image003.bmp .... and so on. But there are 200 images and i have to use a function to read these images. How can i name a string in a for loop as I wanted? for(int i=0;i<200;i++) { nextImageName = image(i).bmp ..... } I want the code to increase the string name as if it is a number. Could you please help me?
-
It may be simple question but i need an urgent help. I have to use some image sequence as the input to my code. for example: image001.bmp image002.bmp image003.bmp .... and so on. But there are 200 images and i have to use a function to read these images. How can i name a string in a for loop as I wanted? for(int i=0;i<200;i++) { nextImageName = image(i).bmp ..... } I want the code to increase the string name as if it is a number. Could you please help me?
CString strFilename;
int nTotalImages = 200;
for (int nIndex=1; (nIndex <= nTotalImages); nIndex++) {
strFilename.Format ("image%03d.bmp", nIndex);
...
}/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com
-
CString strFilename;
int nTotalImages = 200;
for (int nIndex=1; (nIndex <= nTotalImages); nIndex++) {
strFilename.Format ("image%03d.bmp", nIndex);
...
}/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com