main.cpp: #include <iostream>#include <vector>#include <cstring>#include <cstdio>#include <algorithm>#include <cmath> using namespace std; std::vector
/********** huangsy13@gmail.com FileStruct.h **********/ #ifndef FILESTRUE #define FILESTRUE #include<unistd.h> #include<stdio.h> #include<string.h> #
1.插入配对 std::vector<pair<int,int> > w; w.push_back(make_pair<int,int>(f,s) ); cout <<w[i].first << " " << w[i].second <<endl; 2.元素去重 std::vector<int> a
1.最精确 QueryPerformanceFrequency(&nFreq); cout <<nFreq.QuadPart<<endl;//获得计数频率 QueryPerformanceCounter(&s);//获取当
1. string转int string str; int Num = atoi(str.c_str()); 2.string转char* string s = "how"; const char *c = s.c_str(); //或s.data();3.in转string#include <ss
1.安装g++ 下载https://sourceforge.net/projects/mingw/files/Installer/mingw-get/mingw-get-0.6.2-beta-20131004-1/mingw-get-0.6.2-mingw32-beta-20131004-1-bin
1 /********** 2 TimeCounter.h 3 huangsy13@gmail.com 4 **********/ 5 #ifndef TIMECOUNTER 6 #define TIMECOUNTER 7 8 #include 9 #include 10 ...
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号