2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/_cpp/hello
2018-05-19 20:40:04 +00:00

14 lines
433 B
Plaintext

// To install: (Mac OSX) type g++ in terminal and click enter to download the XCode Developer Tools
(Debian/Ubuntu) apt-get install g++
(Fedora/CentOS) dnf install gcc-c++
// To Compile: g++ my_script.cpp
// To Execute: ./a.out
// To Compile w/ specific executable name: g++ my_script.cpp -o my.executable
// To Execute: ./my.executable
int main() {
std::cout << "Hello" << endl;
return 0;
}