Notes week of Oct 3

string-input.cpp

#include <iostream>
using namespace std;
int main()
{
    string name = "Anonymous";
    cout << "Enter your name: ";
    //cin >> name;
    getline(cin, name);
    if(name == "Chris" || name == "chris")
    {
        cout << "Welcome, sir." << endl;
    }
    else
    {
        cout << "Get lost, loser." << endl;
    }
    return 0;
}