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;
}