https://github.com/markmachine/basic-c-plus-plus
basic syntax and usage examples of C++
https://github.com/markmachine/basic-c-plus-plus
Last synced: about 2 months ago
JSON representation
basic syntax and usage examples of C++
- Host: GitHub
- URL: https://github.com/markmachine/basic-c-plus-plus
- Owner: markmachine
- License: mit
- Created: 2019-10-29T15:17:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T16:55:00.000Z (over 6 years ago)
- Last Synced: 2025-03-12T04:28:14.158Z (about 1 year ago)
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Basic C++ Examples
## Running Locally
1. Create a C++ file with the `*.cpp` extension
2. Compile a new or existing file using `./scripts/comp.sh 01_hello-world`
3. Run the compiled output file using `./01_hello-world.out`
## Tutorials and Examples
[Standard C++ Reference](https://www.example.com) - main C++ reference
## C++ For Use With Arduino Platform
[Arduino Reference](https://www.arduino.cc/reference/en/) - reference for using C++ with Arduino
## Notes
On OSX I had run the compiler with these options:
```
gcc -lstdc++ .cpp -o .out
```
The script `scripts/comp.sh` just simplifies the compile process on OSX. You enter the name of the source file and the script will compile and run the output.
Create a symbolic link:
`ln -s ~/basic-c-plus-plus/scripts/comp.sh ~/bin/cpile`