WHy does this program work when the latter program doesn't?
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> ivec;
vector<int>::size_type esize;
cin >> esize;
vector<int>::iterator iter = ivec.begin();\*it doesn't work when this is in the beginning of the code*\
for(vector<int>::size_type s = 0; s != esize; ++s)
ivec.push_back(0);