diff --git a/.github/.DS_Store b/.github/.DS_Store new file mode 100644 index 0000000..c356824 Binary files /dev/null and b/.github/.DS_Store differ diff --git a/.github/workflows/.DS_Store b/.github/workflows/.DS_Store new file mode 100644 index 0000000..4b416b9 Binary files /dev/null and b/.github/workflows/.DS_Store differ diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..be1eb94 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,15 @@ +name: C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Compile C++ 2017 + run: g++ main.cpp -std=c++17 -o Bugtastic diff --git a/.gitignore b/.gitignore index 259148f..92c5b58 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ *.exe *.out *.app + +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..b417bdc --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Bugtastic + +[![C++ CI](https://github.com/dhelms1/Bugtastic/actions/workflows/actions.yml/badge.svg?branch=master&event=push)](https://github.com/dhelms1/Bugtastic/actions/workflows/actions.yml) diff --git a/main.cpp b/main.cpp index ecca4f4..ede842d 100644 --- a/main.cpp +++ b/main.cpp @@ -1,28 +1,31 @@ #include using namespace std; + // This program is a simple intro to C++ example of debugging int main() { int age; string name; - char last initial; + char lastInitial; - cout<<"Hi. What is your first name? " - cin<>last initial; - cout<<"Thanks, "<>name; + cout<>lastInitial; + cout<<"Thanks, "<>age>>endl; + cin>>age; if( age < 12 ) { cout<<"Hey kid, how do you like school?\n"; } if( age < 18 ) - cout<<"Cool!"endl; + { + cout<<"Cool!"<