Ok, basically this started out as just trying to combine a string with a number held in a variable, then i relized it goes beyond that.
Here is a little typed up rough example of what i am trying to do.
Does that make any sense? I want a char string that equals "filename0.tga", this is because i have a opengl program and i am taking screenshots of it, and i need the filenames to be dif otherwise they just overwrite each other.Code:int myInt = 0; unsigned char myChar; myChar = "filename"myInt".tga";
So every SS taken i basically go myInt++;, and the filename of every pic needs to be "myscreenie"myInt".tga".
Does that make any sense? If this was flash id simply do "filename"+myInt+".tga", but c++ seems not to like this. Can someone let me know how this can be done?
I dont know how to combine strings like that, and in my mind, if i remember right, theres also a problem with writing an int into a char too.