Skip to content

Instantly share code, notes, and snippets.

@romanegloo
Last active January 9, 2019 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romanegloo/79240387b29182231204cf5fdc7c532d to your computer and use it in GitHub Desktop.
Save romanegloo/79240387b29182231204cf5fdc7c532d to your computer and use it in GitHub Desktop.
lab1 note for UKY CS 215

Environment

prefer NO (fancy) IDE like VS, XCode, Clion... I prefer plain text files

How to compile C++ file and Run

compile

g++ [source file] -o [executable file]

such as

g++ zy1.2.3.cpp -o zy1.2.3.out

If you are using Mac OS, make should work too.

make zy1.2.3

If you get an error saying that make command cannot be found, then you need to install Mac developers tool. Something like this instruction should work. (Not verified by me though) Install the Command Line Developer Tools Without Xcode

Protocols

We will try to follow this: Google C++ Style Guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment