geral吧 关注:5贴子:215
  • 0回复贴,共1

CPP Vector fstream

只看楼主收藏回复

fstream is used to make reading and writing with formation of the iostream.
eg: ifstream in("path");
Ofcourse do not forget the namespace;
vector is easy to remember for it is just need a type declare like: vector<int> v;
and vector can be operated like an array, like v[10]=v[10]*2;
the relative function is shown like :
push_back; push_front; insert; size; etc.


IP属地:广东1楼2013-11-26 23:28回复