- Clone this repo
- Install MinGW on Windows and g++ on macOS & Unix-like.
- Compile and run using:
$ g++ <FILENAME.cpp> -o <OUTPUT-BINARY-NAME>
$ "OUTPUT-BINARY-NAME" # on windows cmd (using "")
$ ./OUTPUT-BINARY-NAME # on macOS and Unix-like
NOTE: While running any of the C++ code missing their respective headers, please add using namespace std;
after the pre-included headers. Reference
Adding following flags in optional and depends on the users thugh are sugegsted to be used while developing-compiling locally:
-g
- turn on debugging (so GDB gives more friendly output)-Wall
or-Weverything
- turns on most warnings-O or -O2
- turn on optimizations-o <name>
- name of the output file-c
- output an object file (.o)-I<include path>
- specify an include directory-L<library path>
- specify a lib directory-l<library>
- link with library lib.a
However, it is suggested that you use first, second, third and fourth (while compiling source files) for best results and local development.
- Install Node.js
- Clone this repo
- Open the
package.json
file to find the appropriate command under scripts tag. - Run in a terminal in following fashion:
$ npm run <TAG-NAME-INSIDE-SCRIPTS>
$ npm run stack
$ node js/stack.js
Happy Hacking!