Created
March 25, 2012 15:07
-
-
Save palcu/2197019 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <queue> | |
using namespace std; | |
struct Vaca{ | |
int x,y; | |
char ceva[20]; | |
float alte_balarii; | |
}; | |
struct cmp{ | |
bool operator()(Vaca a, Vaca b){ | |
return a.x < b.x; | |
} | |
}; | |
Vaca make_vaca(int x, int y){ | |
Vaca v; | |
v.x = x; | |
v.y = y; | |
return v; | |
} | |
int main(){ | |
priority_queue<Vaca, vector<Vaca>, cmp> pqul_tau; | |
pqul_tau.push(make_vaca(3,2)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment