How to write a program in C++ such that it will delete itself after execution?

前端 未结 7 1019
醉话见心
醉话见心 2020-12-14 01:35

How to write a program in C++ such that it will delete itself after execution ?

相关标签:
7条回答
  • 2020-12-14 02:04

    It's a legitimate enough question but it seems you don't understand how executables work. Execution places the program in memory so deleting the disk file is trivial (provided you don't also delete run-time dependencies).

    0 讨论(0)
提交回复
热议问题