Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating all assignments #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
3 changes: 2 additions & 1 deletion fix-code-0/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
using namespace std;

int main() {
cout<<"Hello "; cout <<"World!"; cout << endl;
// Write code here.
cout << "Hello World!" << endl;
}
2 changes: 1 addition & 1 deletion fix-code-1/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
using namespace std;

int main() {
cout << Hello;
cout << "Hello" << endl;
}
2 changes: 1 addition & 1 deletion fix-code-2/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
using namespace std;

int main() {
cout << "Hello"
cout << "Hello" << endl;
}
2 changes: 1 addition & 1 deletion fix-code-3/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
using namespace std;

int main() {
cout >> "Hello";
cout << "Hello" << endl;
}
2 changes: 1 addition & 1 deletion fix-code-4/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
using namespace std;

int main() {
cout << "My GitHub username is [fill in your username here]!";
cout << "My GitHub username is john-lakeman!" << endl;
}
7 changes: 7 additions & 0 deletions invent-code-0/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ using namespace std;

int main() {
// Write code here.
cout << endl;
cout << "I graduated from TAMS in 2004." << endl;
cout << endl;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like you're duplicating your endl here. you have two new lines per one line of code. Can you remove one of the endls? here and below too.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

cout << "I play(ed) and eventually coach(ed) Rugby until COVID-19 shut us down." << endl;
cout << endl;
cout << "My parents/grandparents were carpenters, which I am enjoying as my newfound hobby." << endl;
cout << endl;
}
1 change: 1 addition & 0 deletions invent-code-1/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ using namespace std;

int main() {
// Write code here.
cout << "Texas A&M is better than UT. " << "Taxation is theft. " << "Epstein didn't kill himself." << endl;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make this multiple lines? this is a bit long.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

}