C++60 boost replace boost replace 1.소스 #include #include using namespace std; using namespace boost; int main( int argc , char ** argv ) { string str1 = "hello black falcon ab"; cout 2016. 8. 1. boost find boost find 1.소스 #include #include using namespace std; using namespace boost; int main( int argc , char ** argv ) { char text[] = "hello black falcon ab"; iterator_range result = find_last( text , "ab"); transform( result.begin() , result.end() , result.begin() , bind2nd( plus() , 1 ) ); cout 2016. 8. 1. boost trimming boost trimming 1.소스 #include #include using namespace std; using namespace boost; int main( int argc , char ** argv ) { string str1 = " hello world! "; cout 2016. 8. 1. boost helloworld boost helloworld 1.소스 #include #include using namespace std; using namespace boost; int main( int argc , char ** argv ) { string str1(" hello world! "); to_upper(str1); // str1 == " HELLO WORLD! " trim(str1); // str1 == "HELLO WORLD!" cout 2016. 8. 1. 이전 1 ··· 3 4 5 6 7 8 9 ··· 15 다음