K
Kelvin
To all,
I've tried to use the data structures in STL of standard
C++ lib, but compile errors such as "vector is an
undefined variable/type"
here's the snippet
#include <vector.h>
.... other include file(s)
int t_main () {
vector<int> vInt;
vInt.push_back(100);
vInt.push_back(20);
.... other push_back statements...
return 0;
}
It seems to me that VC++ compiler can't identify most the
C++ identifiers such as cout, cin.
Can anyone help on this issue??? Or are there any useful
tutorials on introducing how to code under VC++???
Thx!
I've tried to use the data structures in STL of standard
C++ lib, but compile errors such as "vector is an
undefined variable/type"
here's the snippet
#include <vector.h>
.... other include file(s)
int t_main () {
vector<int> vInt;
vInt.push_back(100);
vInt.push_back(20);
.... other push_back statements...
return 0;
}
It seems to me that VC++ compiler can't identify most the
C++ identifiers such as cout, cin.
Can anyone help on this issue??? Or are there any useful
tutorials on introducing how to code under VC++???
Thx!