#include <iostream
using namespace std;

int main()
{
   cout << "Enter first card: ";
   string firstcard;
   string of;
   string firstsuit;
   cin >> firstcard >> of >> firstsuit;
   cout << "Enter second card: ";
   string secondcard;
   string secondsuit;
   cin >> secondcard >> of >> secondsuit;
   cout << endl;
   if (firstcard != secondcard || firstsuit != secondsuit)
   {
      cout << "Different cards";
      return 0;
   }
   cout << "Same card";
   return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: