From 85f88496cc52fd6e4eb6e150b4c47f11dfb701af Mon Sep 17 00:00:00 2001 From: ganome Date: Mon, 19 Aug 2024 17:47:45 -0600 Subject: [PATCH] Started playing with C++ in vscode --- cpp/vscode/helloworld.cpp | 6 ++++++ python/lp3thw/Exercise05/ex5.py | 4 +++- python/lp3thw/Exercise10/ex10.py | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 cpp/vscode/helloworld.cpp mode change 100644 => 100755 python/lp3thw/Exercise05/ex5.py mode change 100644 => 100755 python/lp3thw/Exercise10/ex10.py diff --git a/cpp/vscode/helloworld.cpp b/cpp/vscode/helloworld.cpp new file mode 100644 index 0000000..470a39d --- /dev/null +++ b/cpp/vscode/helloworld.cpp @@ -0,0 +1,6 @@ +#include + +int main() { + std::cout << "Hello World!" << std::endl; + return 0; +} \ No newline at end of file diff --git a/python/lp3thw/Exercise05/ex5.py b/python/lp3thw/Exercise05/ex5.py old mode 100644 new mode 100755 index a4d693f..f638f73 --- a/python/lp3thw/Exercise05/ex5.py +++ b/python/lp3thw/Exercise05/ex5.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + myName = "Ganome" myAge = 35 myHeight = 72 @@ -15,4 +17,4 @@ print(f"His teeth are usuallyy {myTeeth} depending on the coffee.") #tricky line total = myAge + myHeight + myWeight -print(f"If i add {myAge}, {myHeight}, and {myWeight} I get {total}.") \ No newline at end of file +print(f"If i add {myAge}, {myHeight}, and {myWeight} I get {total}.") diff --git a/python/lp3thw/Exercise10/ex10.py b/python/lp3thw/Exercise10/ex10.py old mode 100644 new mode 100755 index 5f5af6c..7ed1af1 --- a/python/lp3thw/Exercise10/ex10.py +++ b/python/lp3thw/Exercise10/ex10.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 tabbyCat = "\tI'm Tabbed in." persianCat = "I'm Split\non a line." backslashCat = "I'm \\ a \\ cat." @@ -12,4 +13,4 @@ I'll do a list: print(tabbyCat) print(persianCat) print(backslashCat) -print(fatCat) \ No newline at end of file +print(fatCat)