Skip to content

Instantly share code, notes, and snippets.

@altendky
Last active January 27, 2017 21:11
Show Gist options
  • Save altendky/0a84fe3b9f047a1d7e260d9cf82192ac to your computer and use it in GitHub Desktop.
Save altendky/0a84fe3b9f047a1d7e260d9cf82192ac to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
using namespace std;
int main (int argc, char* argv[])
{
string command = string("py");
cout << " - - - - - - - \\/ \\/ - - - - - " << std::endl;
for (int i = 2; i < argc; i++)
{
cout << argv[i] << endl;
command += " ";
command += '"';
command += argv[i];
command += '"';
}
cout << " - - - - - - - /\\ /\\ - - - - - " << std::endl;
cout << command << endl;
cout << " - - - - - - - /\\ /\\ - - - - - " << std::endl;
system( command.c_str() );
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment