Just started to learn vector, but I got this error from VC++2010 and stuck there, help please....
"error C2228: left of '.push_back' must have class/struct/union"
#include <vector>
#include <iostream>
#include <limits>
using namespace std;
int main()
{
vector<double> myVector();
double temp = 30.0;
myVector.push_back(temp); //this line makes error ?? why??
return 0;
}