C++ Programming

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

Last modified on 26 July 2010, at 21:42