WORD wVersionRequested; WSADATA wsaData; int err; wVersionRequested = MAKEWORD( 2, 2 ); err = WSAStartup( wVersionRequested, wsaData ); if ( err != 0 ) { /* Tell the user that we could not find a usable */ /* WinSock DLL. &nb ...
//send发包TCP WORD wVersionRequested; WSADATA wsaData; int err; wVersionRequested = MAKEWORD( 2, 2 ); err = WSAStartup( wVersionRequested, wsaData ); if ( err != 0 ) { /* Tell the user that we could not find a usable */ /* WinSock DLL. ...
#includeiostream using namespace std; templatetypename T T max5(T num ={0,1,2,3,4} ; double num2 ={8.8,7.7,6.6,5.5,4.4}; cout"整形数组中的最大值是:"max5(num1)endl ; cout"浮点型形数组中的最大值是:"max ...