fork download
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main()
{
	string input;
	cout << "Please Enter 'add'" << endl;
	cin >> input;
	transform(input.begin(), input.end(), input.begin(), ::tolower);
	if(input == "add")
	{
		cout<<"You entered 'add'" <<endl;
	}
	else
    {
        cout<<"You didn't enter 'add'"<<endl;
    }
}
Success #stdin #stdout 0s 2988KB
stdin
AdD
stdout
Please Enter 'add'
You entered 'add'