// Console_DataEntry2.cpp : main project file. /* ________________________________________________ Learning C++: Lesson 1 Data Entry Part 2 Ron Kessler Created 5/22/2016 This little program shows how to use: String Concatenation _________________________________________________ */ #include "stdafx.h" using namespace System; int main(array ^args) { //---print out a nice welcome Console::WriteLine("Welcome to Tom's Tea Hut\n\n"); //The \n\n you see creates 2 blank lines //---get their names Console::WriteLine("Please enter your First name:"); String^ firstName = Console::ReadLine(); Console::WriteLine("Please enter your Last name:"); String^ lastName = Console::ReadLine(); /*---now print a friendly message. The \n you see creates a blank line When you connect parts of text message together, we call it CONCATENATION. Write that down. */ Console::WriteLine("\n\nThanks for shopping " + firstName + " " + lastName + "," + " buy more next time!\n\n"); Console::WriteLine("Press any key to end."); Console::ReadLine(); //keeps the window/console open return 0; }