#include <iostream>
#include <string>
#include <cstdlib> // C++-Version von <stdlib.h> fuer system()
#include <unistd.h> // fuer sleep()
using namespace std;

int main(void)
{
   string s="xeyes &"; // von C nach C++
   system(s.c_str());  // von C++ nach C
   sleep(3);
   s="killall "+s;
   system(s.c_str());  // system("killall xeyes &");
   return 0;
}
