// This program asks the user to enter three names and then compares them and displays// them in alphabetical order using strcmp.#include <iostream>#include <windows.h>#include <cstring>using namespace std;int main(){ char string1, string2, string 3; const int SIZE = 8; // Get the string names from the user cout << "Please enter three first names. Each name may be up to 8 characters long." << endl; << "Make sure to separate each name with a space." << endl; cin >> string1 >> string2 >> string3; // Compare the strings if (strcmp(string1, string2) > 0) { cout << string1 << endl; if (strcmp(string2, string3) > 0) cout << string2 << endl; << string3 << endl; else if (strcmp(string2, string3) < 0) cout << string3 << endl; << string 2 << endl;