Possible Duplicate:
C++ Object Instantiation vs Assignment
I am quite new to C++ and was wondering what is the difference(if any) between instantiating an object as
int main () {
vector< int > x(2);
}
or
int main () {
vector< int > x = vector< int > (2);
}
except for the fact that the latter takes longer to write. Thanks in advance!