Untitled
unknown
plain_text
2 years ago
724 B
19
Indexable
#include<bits/stdc++.h>
using namespace std;
int main(){
/*
Priority Queue
priority_queue<int>pq;
pq.push(2);
pq.push(-10);
pq.push(100);
pq.push(5);
cout<<"Decending : ";
while(!pq.empty()){
cout << pq.top() <<" ";
pq.pop();
}
cout<<endl;
priority_queue<int,vector<int>,greater<int>>q;
q.push(2);
q.push(-10);
q.push(100);
q.push(5);
cout<<"Acending : ";
while(!q.empty()){
cout << q.top() <<" ";
q.pop();
}
*/
//Pair two type in variable
pair<int,string>p;
p.first=222115019;
p.second="ABC";
cout<<p.first<<" "<<p.second;
return 0;
}
Editor is loading...