gostaria de adicionar um cronometro que faça uma contagem regressiva de 60 segundos ao final da contagem ele de um enter
ate essa parte do codigo ja aparece na tela so nao consigo um cronometro pra ir retirando os valores dentro da chave (TIMER) em advmenu.ini
alguem pode dar uma começo?
string tag_info_get(const game* g, int gs, int ga, const string favorites, const string tag_info) {
string info_tag = "";
if (tag_info == "favorites") {
info_tag = favorites;
} else if (g) {
//-----------------------------descartar acima----------------------------------------------------------------------------------------------------------------
//MEGATECH- Mostrar contador TIMER PARA ENTRAR NO JOGO
if (tag_info == "time") {
ostringstream os;
int Ret= 0, Ret2=0, TIMER= 60, LIGAR_TIMER=0;
char buffer1[100];
char buffer2[100];
Ret = GetPrivateProfileStringA("FICHEIRO","TIMER","0", buffer1, 100, ".\\advmenu.ini");
Ret2 = GetPrivateProfileStringA("configuração","LIGAR_TIMER","0", buffer2, 100, ".\\advmenu.ini");
TIMER=atoi(buffer1);
LIGAR_TIMER=atoi(buffer2);
if (LIGAR_TIMER == 1) {/////////////////liga ou desliga
os << "" << setw(2) << setfill('0') << TIMER; ///////mostra dois digitos na tela
?????
???
info_tag = os.str();
}else
info_tag = "";