摘要:
1、数组转vectorfloat arrHeight[] = { 1.68,1.72,1.83,2.05,2.35,1.78,2.1,1.96 }; vector<float> vecHeight(arrHeight, arrHeight+sizeof(arrHeight)/sizeof(float 阅读全文
posted @ 2019-01-15 18:47
于光远
阅读(8766)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <vector> #include <windows.h> #include <algorithm> using namespace std; int main() { vector<int> vec = {-7, 1, 10, 7, 2, 阅读全文
posted @ 2019-01-15 18:24
于光远
阅读(8154)
评论(0)
推荐(1)
摘要:
for(std::vector::iterator it = m_ConnectId.begin();it!=m_ConnectId.end();){ if(send(*it,&*_msg.begin(), _msg.size(),0) < 0){ m_ConnectId.erase(it); }el... 阅读全文
posted @ 2019-01-15 17:14
于光远
阅读(2453)
评论(1)
推荐(0)

浙公网安备 33010602011771号