raigs -1 Light Poster

Does C++ wait for a *system* shell command to finish before executing the rest of the C++ code? (The shell script does not output any text, it simply executes *find* to *rm* files.)

I'm saying this because the shell script may take a long time to find and delete all the files I want.

I wrote a sample C++ code to illustrate what I mean:

#include <iostream>
#include <cstdlib>

using namespace std;

int main(void)
{
	cout << "Hello World!\n";

	system("find /path-to-folder/ -type f -mtime +3 -exec rm {} \\;");

	cout << "Does this *cout* line run after the *system* shell command finishes?\n";

	return 0;
}