by Alexey Stepanyan <alexeystepanyan@[EMAIL PROTECTED]
>
Apr 29, 2008 at 05:40 PM
Sorry, my previous post should have included the following code
after the string is split into tokens
( srcaddress and src****t ( the same for destaddress and dest****t ) )
.....
std::string source( "131.188.37.230.22" );
std::string srcaddress = s.substr( 0, s.find_last_of( "." ) );
std::string src****t = s.substr( s.find_last_of( "." ) + 1 ); ;
std::cout << "srcaddress = " << srcaddress << std::endl;
std::cout << "src****t = " << src****t << std::endl;
------------------
srcaddress = 131.188.37.230
src****t = 22
Thanks,
Alexey.
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]