2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
cheat.sheets/sheets/_cpp/hello
terminalforlife d7473ac185 Fix trailing whitespace on all files
Tidy files; tidy soul!
2020-02-22 02:47:54 +00:00

14 lines
432 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;
}