please simple code

I need simple code to run a c++ program in the background. I mean not display a window. The ones on the net are too brief or complicated.
Also how would i close it?

Also another question can i make my program search the whole pc?
Cause i will make a virus using above and then delete it using my c++ antivirus.
Registered users can post here. Sign in or register to post.