استفاده از pair کارتون رو جلو میبره
#include <iostream>
#include <utility>
using namespace std;
int main()
{
  pair<int, int> p1, p2;
  cout<<"input x1, y1";
  cin>>p1.first>>p1.second;
  cout<<"input x2, y2";
  cin>>p2.first>>p2.second;
  if(p1 == p2)
    cout<<"equal";
  else
    cout<<"not equal";
  return 0;
}
هیچ پژوهش انسانی نمیتواند ادعای علمی بودن داشته باشد، مگر اینکه از برهان ریاضی برخوردار باشد (لئوناردو داوینچی)