C++ Application #5 – Meet & Greet

// Takes users input, and greets them by outputting their input with some flavor text
// Created by Adrian Miasik
// Date: 2017/05/13

#include <iostream>
#include <string>

int main() 
{
	// Prompt user for their name
	std::cout << "Please enter your name:" << std::endl;

	// Declare a place to store user's input
	std::string name;

	// Store user's input
	std::cin >> name;
	
	// Greet them using the stored string
	std::cout << "Hello there " << name << "! Nice to meet you, my name is HUE-MHAN. What's a robot?" << std::endl;

	return 0;
}

C++ Application #4 – Hello, World! Newline Repeating…

// Hello World Newline Repeating Program - Prints "Hello, World!" but a newline occurs everywhere that whitespace is allowed to happen (once of course)
// Created by Adrian Miasik
// Date: 2017/05/13

#include <iostream>

int main()
{
	std::cout << "H" << std::endl << "e" << std::endl << "l" << std::endl << "l" << std::endl << "o" << std::endl << "," << std::endl << " " << std::endl << "W" << std::endl << "o" << std::endl << "r" << std::endl << "l" << std::endl << "d" << std::endl << "!" << std::endl;
    // std::cin.get(); // Prevents the console from closing 
	return 0;
}

C++ Application #2 – String Literal / Escape Characters Exercise

// String Literals / Escape Characters Exercise - Outputs a string that contains a quotation mark and a backslash
// Created by Adrian Miasik
// Date: 2017/05/13

#include <iostream>

int main()
{
	std::cout << "This (\") is a quote, and this (\\) is a backslash." << std::endl;
	// std::cin.get(); // Prevents the console from closing
	return 0;
}

C++ Application #1 – Hello, World!

// Hello World Program - Outputs string "Hello, World!" (without the quotations)
// Created by Adrian Miasik 
// Date: 2017/05/13

#include <iostream>

int main()
{
	std::cout << "Hello, World!" << std::endl;
	// std::cin.get(); // Prevents the console from closing 
	return 0;
}

Learning C++ Again…

c++banner

C++ was the first programming language I started learning when I was about 10 years old. Needless to say I didn’t get far, but I think in retrospect that’s kind of acceptable. When I was learning C++ for the first time I didn’t necessarily have a cause which kind of defeats the purpose of learning it in the first place. At that young of an age I didn’t think too much about it.

When I was 10, all I wanted to do is play video games. So I did for many years. But something wasn’t right. As I got older I noticed myself always come back to programming.

But this time I wanted to do something. A game, an application, a simulation, anything.

I started learning python. I made a bunch of console games. They were very simple, but I made something. Over the months I started making more games, more applications, more stuff. I kept bouncing around from python, java, javascript, html, actionscript, C#, C+. But never C++.

 

GBC_Logo

Many years later I graduated from George Brown College on April 21st 2017 with a 3 year diploma in Game Programming (T163). But I’m back where I started. I want to learn C++ again. We were taught C++ at GBC, but it wasn’t enough. We scratched the surface and once again didn’t manage to get far. We learned most of the basics and I got further than I did before, but it still wasn’t enough. At GBC we learned so many languages, so many game engines, so many things that we never really dove deep into any subject. It was up to the student to take initiative to pursue their dream. Over the 3 or so years at GBC I grabbed onto the Unity Engine and never let go. I made so many games, prototypes, projects, so many things that I’m confident I can use Unity & C# (MonoBehaviour) on a professional setting. If you are interested here are a couple of the games I made over the course of 3 years: https://adrian-miasik.itch.io/

 

It’s now May 13th 2017.

Here I am, sitting in front of my computer typing this up. I’ve had a small break after I finished school but I’m ready to try again. After many attempts and distractions I’m going to try again.

I’ll be going through the following book:
“Accelerated C++: Practical Programming by Example”
ISBN: 0-201-70353-X

Feel free to subscribe to my site to get updates whenever I post. This can be found in the footer below…