+ 4
Self destructing project
how to make an application in c++ that will delete it self after specific date?
1 Réponse
0
you want a program to run all the time until a specific date or time has passed? just let it wait for that amount of time. you'll probably need the ctime lib and one lib where a wait function or smth like that is provided, then just let the wait function run with the amount of time you want it to run. problem on that is, that you'll either have to check with a date and interupt the cpu when reaching your specific date or let your program running all the time. the first approach is probably the better, but there are surely better options