C++ main() entry point for the console application.

Description

C++ main() entry point for the console application.

#include <iostream> 
#include <string> 
  
using namespace std; 
  
int main(int argc, char *argv [])
{ 
        cout << "What is your name?" << endl; 
  
        string name {}; //w w w.  j  a  v a2 s  . c o m
        cin >> name; 
  
        cout << "You said your name is: " << name << endl; 
  
        return 0; 
}



PreviousNext

Related