How would I use strcat to add the number stored in a var?
Posted: Wed Jul 22, 2009 4:53 pm
I'm trying to make something that will add a textNumber. kinda like a timer but not exactly a timer, I'm using this code:
I'm trying to make a fake clock, for a cutscene in the game, but I cant seem to add "hours, secs, and minutes" to the clock using strcat, is there any way that this can be done? My current code is
But that dosnt seem to work, I get this message
- Code: Select all
double sec;
double minutes;
double hours;
I'm trying to make a fake clock, for a cutscene in the game, but I cant seem to add "hours, secs, and minutes" to the clock using strcat, is there any way that this can be done? My current code is
- Code: Select all
strcpy(text, "");
strcat(textNumber, hours);
strcat(text, ":");
strcat(textNumber, minutes);
strcat(text, ":");
strcat(textNumber, sec);
But that dosnt seem to work, I get this message