摘要:
#include <vector>#include <iostream>#include "compacket.h"using namespace std;char szBuf[4096];const int INT = 4;const int STRING = 100;void EncodeMsg(char *pPos){int tmp = 80000;memcpy((void *) pPos, (void *) &tmp, INT);pPos+=INT;char Role[] = "艾迪";memcpy((void * 阅读全文
posted @ 2012-05-14 16:57
byfei
阅读(192)
评论(0)
推荐(0)
摘要:
#include <vector>#include <iostream>#include <iterator>using namespace std;int main(){int N = 2, M = 3;vector<vector<int> > Matrix(N, vector<int> (M, 0));ostream_iterator<int> os(cout, " ");Matrix[0][2] = 4;//交换矩阵的两行Matrix[0].swap(Matrix[1]);//交换矩阵 阅读全文
posted @ 2012-05-14 14:49
byfei
阅读(1379)
评论(0)
推荐(0)

浙公网安备 33010602011771号