I know this question has been asked before but I still haven\'t seen a satisfactory answer, or a definitive \"no, this cannot be done\", so I\'ll ask again!
All I wa
The following works as a quick and dirty solution, but note that it is far from being foolproof:
#include using namespace std ; int main( int argc, char** argv) { cout << argv[0] << endl ; return 0; }