Im trying to do the old...
for i = 1 to 3
load image "+str$(i)+.png",i
next i
... and would like to use the string class. Bouncy gave a few examples using sprintf, but id rather use the string class if I can. What exactly do I need to do to get the above code working in c++? My first attempt didnt work, the 'db' functions cant convert the string to whatever it needs --->
#include "DarkSDK.h"
#include <string>
void DarkSDK ( void )
{
std::string fileName("1.png");
while ( !dbEscapeKey ( ) )
{
dbText(0,0,fileName );
dbSync ( );
}
}
All you need is zeal