Using istringstream in C++
问题 I have some code that utilizes fork, execlp, and wait to make two processes. The objective is to be able to repeatedly print a prompt and have the user enter a command with up to 4 arguments/options to the command. int main() { string command, argument; istringstream iss(argument); do { //prompt user for command to run cout << "Enter command: "; cin >> command >> argument; int pid, rs, status; //fork will make 2 processes pid = fork(); if(pid == -1) { perror("fork"); exit(EXIT_FAILURE); } if