叉积

#include<iostream>
using namespace std;
struct point
{
int x,y;
};
int main()
{
point p,q;
cin>>p.x>>p.y>>q.x>>q.y;
cout<<p.x*q.y+p.y*q.x<<endl;
}

 

原文地址:https://www.cnblogs.com/2014acm/p/3911250.html