Check out example codes for "c++ compiler for sublime text". It will help you in understanding the concepts better.

Code Example 1

{ "shell_cmd": "g++ \"${file}\" -o \"${file_path}\\\\${file_base_name}\"", "file_regex": "^(..[^:]):([0-9]+):?([0-9]+)?:? (.)$","working_dir": "${file_path}", "selector": "source.c, source.c++", "variants": [ {...

Learn ReactJs, React Native from akashmittal.com