TODO List for Kyle - Mentoring
"Finish out" the assembly courses
- Take your assembly courses and convert your notes into markdown in Github gists.
- Pin those gists to your Github profile.
Complete 2 C++ assignments
- Assignment 1: Create a class with 2-3 member functions and initialize an instance of the class in
- Assignment 2: Operator overloading (look at my github for an example!)
Back to JS / React
C++ assignment 1
To get your editor set up, watch tutorials "VSCode C++ tutorial, Compile And Run On Windows", such as https://www.youtube.com/watch?v=DIw02CaEusY
You can also work with this interactive shell to "get going": http://cpp.sh/
C++ code samples: copypasta can be a good thing! https://github.com/abstractmachines/cpp-algorithms https://github.com/abstractmachines/OOP_Cpp_ComplexNumbers
Write a HelloWorld C++ class that has two member functions. One function should be called helloWorld() and should print out “Hello World.” The second member function should create a static array of integers and print that out.
- TIP: First write a C++ function.
- Then print basic stuff out. LIke the tutorials you'll see on Youtube. PLAY around! This is a good start too! http://cpp.sh/
- After you can print basic stuff and write a function, stopping at each little step to compile and run your code one line at a time,
- Then, write a C++ class.
- But first, get super basic stuff working. Make one line work.
^ I compiled this file!
// to run the file, Windows will show you how to run the actual executable file. It's hard to do in Windows.
Test those member functions out by making an instance of the class inside of your main() function. Print basic shit. Get paid. The end.
SECTION 3 CODE: Nice to have/stretch goal: Make a third member function.
The third member function will dynamically create an array of integers. The size of the array will be determined by the user. This function will take a string as an input.
When you call this third member function from main(), you will ask the user “how long should the magic array be?” Then the user will input a number. You’ll probably read this in using stdin or something, and you’ll probably ask the user for input using cout << or something.
Take that number that the user gave you and pass that into the third member function as an argument.
The third member function body (in the class) will dynamically create an array using the “new” keyword. The array will be sized according to the argument passed into the third member function. The function will print out the entire array.