- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 利用语法树,构造回文
#include string>#includeiostream> using namespace std; string g_str; string palindrome(char*const psz ) { if( !*psz ) returnstring( "" ); string strRet;if( *psz =='0' )
2009-06-18 20:12:00 582
原创 Implementation of CClient
void CClient::send_message( const std::string& strMsg ) { if( send( m_iFlIndCli, strMsg.c_str(), SZBUFF, 0 ) _error( "Can not send message to connected server!" ); if( !_receive_from_server
2009-06-18 20:03:00 589
原创 Implementation of CServer
bool CServer:: _receive_from_client() { char szRet[ SZBUFF ]; m_strRet = string( " Hello client, Welcome!/n" ); m_strRet.append( " You asked:'" ); if( recv( m_iFlIndCli, szRet, SZBUFF, 0 )
2009-06-18 19:58:00 467
Weather Report .NET
2010-04-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人