How would you open a file with c++ , for example when you run the program it opens a game of minesweeper. Also how would you save a copy of the minesweeper to the desktop?

In the most platform-neutral way, use system().

For Windows, you can also use CreateProcess() or the ExecProgram() macro.

To save things to the desktop, you first have to know where it is. Use
SHGetSpecialFolderlocation

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.