如何在不修改主要功能的情况下编写hello world?谢谢
int main(){return 0;}
Run Code Online (Sandbox Code Playgroud)
Nat*_*ath 12
#include<iostream>
int hello() {
cout<<"Hello World"<<endl;
}
static int foo = hello();
int main(){return 0;}
Run Code Online (Sandbox Code Playgroud)
Jar*_*Par 11
只需将此代码添加到某处的.cpp文件即可.
class Hack {
Hack() { cout << "Hello World"; }
} hackInstance;
Run Code Online (Sandbox Code Playgroud)