what is the counterpart of

start program.exe

in c++?

system(program.exe)

system(program.exe)

well i do not want to use the system syntax, isn't there any other way to open a program in c++?

well i do not want to use the system syntax, isn't there any other way to open a program in c++?

No there isn't. You have to resort to OS specific functions to start programs.

system() is a c and c++ function. Otherwise you have to use os-specific functions such as the spawn family of functions on *nix, of ShellExecute() and CreateProcess() on MS-Windows.

commented: Echo? +13
commented: Here's some rep, because "you haven't got enough yet" :icon_wink: +12
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.