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
15 changes: 15 additions & 0 deletions .github/workflows/main.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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[![C++ CI](https://github.com/bviveros/Bugtastic/actions/workflows/main.yml/badge.svg)](https://github.com/bviveros/Bugtastic/actions/workflows/main.yml)
23 changes: 12 additions & 11 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,27 @@ int main()
{
int age;
string name;
char last initial;
char last_initial;

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<<"Please also tell me how old you are: ";
cin>>age>>endl;
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 << "Please also tell me how old you are: ";
cin >> age;

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

return 0;
Expand Down