반응형
boost 라이브러리 사용하기 ][ vector 사용하기
test해보기 : https://wandbox.org/permlink/HAlsd7CG0AacvV2U
[Wandbox]三へ( へ՞ਊ ՞)へ ハッハッ
wandbox.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <string> | |
using namespace std; | |
int main(int argc, char** argv) | |
{ | |
vector<string> vs{}; | |
vs.push_back("blackfalcon1"); | |
vs.push_back("blackfalcon2"); | |
for( auto & it : vs ) | |
cout << it << endl; | |
return 1; | |
} |

반응형
'C++ > 0x02-boost' 카테고리의 다른 글
boost 라이브러리 사용하기 ][ program_options 사용하기 (0) | 2019.03.27 |
---|---|
boost 라이브러리 사용하기 ][ reactor pattern 사용하기 (0) | 2019.02.27 |
boost 설치 (0) | 2018.03.06 |
boost to_upper_copy (0) | 2016.08.01 |
boost iterator_range (0) | 2016.08.01 |