Is there a way to make the following code portable?
....It is quite portable inside the unix land....but I'm looking for a way to make it more standard.
The two following functions are 1.constructor for a disk class (for a virtual machine) and a way to execute shell directory commands of the host system.
disk::disk(string name,vm* owner)
/// Check if name is already in the global list
disk_of = owner;
void disk::command(std::string com)
pwd+=test; //pwd is a string containing the present working dir to carry over from calls to system();
system(("cd "+pwd+" && "+com).c_str());