반응형
boost 설치
■ install
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
sudo apt-get install libboost-all-dev | |
sudo apt-get install aptitude | |
aptitude search boost | |
■ test 소스
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 <boost/array.hpp> | |
using namespace std; | |
int main() { | |
boost::array< int , 4 > arr = {{1,2,3,4}}; | |
cout << "hello " << arr[0]; | |
return 0; | |
} |
반응형
'C++ > 0x02-boost' 카테고리의 다른 글
boost 라이브러리 사용하기 ][ vector 사용하기 (0) | 2019.03.27 |
---|---|
boost 라이브러리 사용하기 ][ reactor pattern 사용하기 (0) | 2019.02.27 |
boost to_upper_copy (0) | 2016.08.01 |
boost iterator_range (0) | 2016.08.01 |
boost c++ 라이브러리 사용하기 ][ find iterator (0) | 2016.08.01 |