C++60 boost example2 boost example2 1.소스 #include #include #include int main( int argc , char ** argv ) { std::string line; boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" ); while (std::cin) { std::getline(std::cin, line); boost::smatch matches; if (boost::regex_match(line, matches, pat)) std::cout 2016. 8. 1. boost example boost example 1.소스 #include #include #include #include using namespace boost::lambda; int main() { typedef std::istream_iterator in; std::for_each( in(std::cin), in(), std::cout 2016. 8. 1. using for with a string using for with a string 1.source #include #include using namespace std; int main( int argc , char ** argv ) { string word = "black falcon"; cout = 0; i-- ) { cout 2016. 7. 29. using the delete operator using the delete operator 1.source #include #include using namespace std; char * getName(void); int main( int argc , char ** argv ) { char *name; name = getName(); cout 2016. 7. 29. 이전 1 ··· 4 5 6 7 8 9 10 ··· 15 다음