C++ Programming

From Wikibooks, open books for an open world
Jump to: navigation, search
#include <iostream>
#include <string>
 
int main(){
    std::string name;
    std::cout << "Please enter your first name: ";
    std::cin >> name;
    std::cout << "Welcome " << name << "!" << std::endl;
 
    return 0;
}