Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .github/.DS_Store
Binary file not shown.
Binary file added .github/workflows/.DS_Store
Binary file not shown.
15 changes: 15 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@
*.exe
*.out
*.app

.DS_Store
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
19 changes: 11 additions & 8 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
#include <iostream>
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<<name;
cout<<"name, what is the first letter of your last name? ";
cin>>last initial;
cout<<"Thanks, "<<name<< <<last initial<<.<<endl;
cout<<"Hi. What is your first name? ";
cin>>name;
cout<<name<< ", what is the first letter of your last name? ";
cin>>lastInitial;
cout<<"Thanks, "<<name<<" "<<lastInitial<<"."<<endl;
cout<<"Please also tell me how old you are: ";
cin>>age>>endl;
cin>>age;

if( age < 12 )
{
cout<<"Hey kid, how do you like school?\n";
}
if( age < 18 )
cout<<"Cool!"endl;
{
cout<<"Cool!"<<endl;
cout<<"How's highschool going?\n";
}
else if( age == 18 )
{
cout<<"Hey!"<<endl;
Expand Down