#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
struct job{
int job_no;
int deadline;
int profit;
};
typedef vector<job> JOB;
job CREATE_job(int job_no, int deadline, int profit){
job j;
j.job_no = job_no;
j.deadline = deadline;
j.profit = profit;
return j;
}
int main(){
int i=0;
JOB jobs;
jobs.push_back(CREATE_job(1,3,40));
jobs.push_back(CREATE_job(2,2,50));
jobs.push_back(CREATE_job(3,3,20));
jobs.push_back(CREATE_job(4,1,15));
for(vector<job>::iterator it=jobs.begin(); it!=jobs.end(); it++, i++){
cout << it->job_no << " ";
cout << it->deadline << " ";
cout << it->profit << endl;
cout << "i : " << endl; //이런것도 된다!
}
}