Self destructing project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Self destructing project

how to make an application in c++ that will delete it self after specific date?

11th Jan 2017, 10:27 AM
Awrang Zaib
Awrang Zaib - avatar
1 Answer
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
13th Jan 2017, 1:02 AM
Abraham Soeyler
Abraham Soeyler - avatar