-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUntitled1.cpp
More file actions
39 lines (36 loc) · 935 Bytes
/
Untitled1.cpp
File metadata and controls
39 lines (36 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//#include "std_lib_facilities.h"
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
cout << "Please enter your first name:\n";
string first_name;
cin >> first_name;
cout << "Hello, " << first_name <<"!\n";
return 0;
}
/*
#include "std_lib_facilities.h"
int main()
{
cout << "Please enter your first name (followed by 'enter'):\n";
string first_name; // first_name is a variable of type string
cin >> first_name; // read characters into first_name
cout << "Hello, " << first_name << "!\n";
cout<< "setup Complete";
}
*/
/*
#include<iostream>
using namespace std;
// main function -
// where the execution of program begins
int main()
{
cout << "Please enter your first name (followed by 'enter'):\n";
string first_name; // first_name is a variable of type string
cin >> first_name; // read characters into first_name
cout << "Hello, " << first_name << "!\n";
cout<< "setup Complete";
}
*/