본문 바로가기

프로그램언어

[ Boost ] Ref. array.hpp /* The following code declares class array, * an STL container (as wrapper) for arrays of constant size. * * See * http://www.boost.org/libs/array/ * for documentation. * * The original author site is at: http://www.josuttis.com/ * * (C) Copyright Nicolai M. Josuttis 2001. * * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE_1_0.txt or copy at * http://.. 더보기
[ Boost ] Boost.Array 정리 Boost 목록 링크 : http://tingcobell.tistory.com/295 ㅇ 내용 boost Ref.에 의하면 가변 크기의 배열은 std::vector or std::vector 의 동적인 배열을 사용할 수 있습니다. 하지만 일반적으로 알고 있는 가변의 크기는 오버헤드가 있기 마련이죠. 그래서 정적인 배열 고정크기를 정해 놓고 개발을 하게 됩니다. 배열이 컨테이너가 아니기에 불편함을 이루 말할 수 없습니다. int array_test[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9}; int array_test[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9}; boost 라이브러리에서 제공하고 있는 boost::array 라이브러리를 사용하여 테스트 해보겠습니다. 아래.. 더보기
[ Boost ] boost.foreach 간단한 예제-2 Boost 목록 링크 : http://tingcobell.tistory.com/295 Boost_foreach 매크로을 보니깐 간단한 코드가 있어 테스트 해보았습니다. 하지만 수행시간이 상당히 느리네요. 간단한 셈플로 그냥 이렇게 쓰는구나라고만 생각하시면 될것 같습니다. #include #include #include //#include //#include #include #include int main() { std::vector testVector; for( int i = 0 ; i < 10; i ++ ) testVector.push_back( i ); std::vector matrix_int; matrix_int.push_back( testVector); BOOST_FOREACH( std::vect.. 더보기
[ Boost ] 간단한 예제 Boost 목록 링크 : http://tingcobell.tistory.com/295 공부하면서 링크를 추가적으로 계속 업데이트 하겠습니다. * accumulators * any * array 링크 : http://tingcobell.tistory.com/300 링크 : http://tingcobell.tistory.com/302 링크 : http://tingcobell.tistory.com/303 * asio 링크 : http://tingcobell.tistory.com/316 링크 : http://tingcobell.tistory.com/317 링크 : * bind 링크 : http://tingcobell.tistory.com/313 링크 : http://tingcobell.tistory.com/31.. 더보기
[ boost ] Boost.foreach 간단한 예제 Boost 목록 링크 : http://tingcobell.tistory.com/295 Boost.foreach 이용한 예제 #include #include #include int main() { std::string hello( "Hello, world!" ); BOOST_FOREACH( char ch, hello ) { std::cout 더보기
[ boost ] boost 공부하기 1. 다운로드 하기 링크 : http://tingcobell.tistory.com/294 2. boost vs( visual studio ) 설정 하기 링크 : http://tingcobell.tistory.com/73 3. 간단한 셈플 컴파일 - 공부 셈플 링크 : http://tingcobell.tistory.com/297 더보기
[ boost ] 다운로드 Boost 목록 링크 : http://tingcobell.tistory.com/295 2007년 boost에 관심만 가졌지 실제로 사용하지 않았습니다. 하지만 이번에 boost을 공부를 해볼까 합니다. 정말로 매력적인 라이브러리가 아닐 수 없습니다. 저의 생각으로는 boost을 공부를 한 후, tbb에 관련된 내용을 공부하려고 합니다. tbb는 세미나를 통해 공부를 했지만, 정말로 필요로 할 것이다라는 생각만 했지 실제로는 몸이 그리 움직이지 않았습니다. 1. Boost 다운로드 링크 : http://www.boost.org 제가 받는 파일은 boost_1_36_1.zip 파일을 받았습니다. 리눅스 프로그래머인데 집에는 윈도우라서 회사에는 리눅스로 집에서는 윈도우로 공부하려고 합니다. 과연 귀찮니즘이 얼.. 더보기
[ Setting ] 자바 설정하기 자바 환경설정하기. 윈도우에서 자바를 사용하기 위해서는 자바의 환경설정을 해주셔야 됩니다. 단순 자바을 이용한 프로그램을 하기 위해서는 필수라 생각하시면 됩니다. 1. 자바 다운로드 링크 : http://www.oracle.com/technetwork/java/javase/downloads/index.html 링크 : http://java.sun.com 해당 SDK을 다운로드 하시면 됩니다. 2. 설치 후 환경설정. 2. 1 JAVA_HOME 설정 자바가 설치된 경로를 지정하시면 됩니다. 시작 -> 실행 -> cmd -> echo %JAVA_HOE% 출력시 경로가 지정되어야 합니다. 2. 2 CLASSPATH 정의 classpath을 지정하기 위해서 그림에 있는 것과 동일하게 설정하시면 됩니다. 2, 3.. 더보기