diff --git a/auto.cc b/auto.cc new file mode 100644 index 0000000..1810d77 --- /dev/null +++ b/auto.cc @@ -0,0 +1,25 @@ +#include +#include +#include + + +const std::vector mcquays = { + "stephen", + "michael", + "bryan", + "derek", +}; + +int func() { + return 42; +} + +int main() { + auto i = 5; + auto j = func(); + auto s = std::string{"hello world"}; + for(auto it = mcquays.begin(); + it != mcquays.end(); it++) { + std::cout << *it << std::endl; + } +} diff --git a/loops.cc b/loops.cc new file mode 100644 index 0000000..c2ab19e --- /dev/null +++ b/loops.cc @@ -0,0 +1,21 @@ +#include +#include +#include + +using namespace std; + +const vector mcquays = { + "stephen", + "michael", + "bryan", + "derek", +}; + +// const vector nums = { 1, 2, 3, 4, 5 }; + +int main() { + // iterate over mcquay boys + + // iterate over nums + // correct numbers +}