STL - 16 (vector - 3)

Youngmin Choi·2021년 6월 19일
0

STL

목록 보기
16/34
post-thumbnail

1. vector 사용방법

  • vector를 사용하려면 vector 헤더파일을 포함해야 한다.
> #include< vector >

원형 :
vector<자료형> 변수이름;
ex) vector<int> vector1;

vector<자료형>* 변수이름 = new vector<자료형>;
ex) vector< int >* vector1 = new vector< int >;

2. vector 주요 멤버들


profile
Always, Continually, In all circumstance

0개의 댓글