Skip to content

Category Archives: c++

C++ Date Class – Manipulate Dates in C++

Finally! I did it! Assignment #4 is complete, and I can manipulate dates pretty effing easily now. No doubt there is already some vastly superior date manipulation library already out there… stupid school. Just kidding. I learned a LOT with this assignment. #include <iostream> using namespace std; class Date { private: /* | \ PRIVATE [...]

Vote Counting Machine: Borda & Plurality

This was my version of a C++ assignment to count votes from a text file. It’s not super useful outside the classroom, but I’m posting it anyway. // // Bryan Simonson // Assignment #3 // Vote Counter // #include <fstream> #include <string> #include <iostream> using namespace std; // Function prototypes int MenuSelect(void); void LoadData(char vote[][100], [...]

C++ Change Dispenser (My First C++ Program)

One of these days I’ll actually know how to program c++ pretty well, and when that happens, I plan to write some kickass software. But when that happens, I figured it would be pretty amusing to look back at my very first c++ program (besides the mandatory “Hello World!” app). This was our first assignment [...]