Posts

hearts.hh

#ifndef HEARTS_HH #define  HEARTS_HH #include <string> #include <ctime> #include <random> #include "self" #include " helloWorld.cpp " namespace hearts {     double getSatisfaction(time_t endOfWeek) {          std::cout << self.thoughts(endOfWeek) << std::endl;          /* Expected output: Hello, everyone! I apologize for missing last Friday's post, as these last couple weeks have been hectic. However, I thought I'd provide a bit of an update on how my studies are going: My physics class is going relatively well. I scored an 85 on the midterm without any real studying, and combined with my good grades in other areas of the class I think it's reasonable to expect an A. However, I still think I could improve the speed and efficiency with which I solve the problems, especially since they'll only get more complex as time goes on. Better safe than sorry. Data science has been put slightly on the bac...

helloWorld.cpp

#ifndef HELLOWORLD_CPP #define HELLOWORLD_CPP #include <iostream> void helloWorld() {      std::cout << "Hello world!" << std::endl;     /* Hello, everyone! Welcome to my blog. My name is Jack Porter, and I'm a high school junior trying to figure out what I'm supposed to do with my life.   I'll probably use this blog to discuss some of my hobbies, plus as a base for my upcoming STEM outreach content.  With that said, I think it'd be appropriate to discuss my primary interests a bit: I'm a math nerd, first and foremost. I'll watch calculus videos to unwind from my other classes, and if I'm just too tired to work then I'll read Life of Fred: Complex Analysis . Naturally, since my father is a programmer, I've inherited a bit of interest in that field. C++ has been my main language so far, though I have a moderate understanding of Python. I started my first physics class this semester, and I've found it to be a lot of fun....