#include <iostream> using namespace std; #pragma comment(linker, "/entry:/"foo/"") //设置新的入口地址 int foo() { cout < <"hello world!" < <endl; return 0; }