#include <stdio.h>
#include <string.h>
#ifdef _WIN32
#define PATH_SEP '\\'
#else
#define PATH_SEP '/'
#endif
int main(int argc, char* argv[])
{
char* s = strchr(argv[0], PATH_SEP);
s = s ? s + 1 : argv[0];
puts(s);
return 0;
}
/*
run
TheForm\3d\x64\Debug\3d.exe
*/