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

One thought on “C++ Application #5 – Meet & Greet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s