1 Star 0 Fork 0

邓丹俊 / 函数整理

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
源24.cpp 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
邓丹俊 提交于 2020-03-29 12:27 . 24是测试代码,25是源代码
#pragma once
#include <iostream>
#ifdef _WIN32
#include <vector>
#include <chrono>
#include <cctype>
#include<string>
#endif
using std::string;
using std::cout;
//#include<iostream>
static string str{ "fgvwefrg//grwgergre" }; // wefgfvtregergvergregvrg
void testThreadPool() {
string testSTr;
for (int z = 0; z < 10000000; ++z) {
int i = z % 1000;
testSTr.push_back(0);
{
//std::this_thread::sleep_for(std::chrono::seconds(1));
cout << "hello" << i;
}
}
for (auto && result : testSTr)
{
cout << 1 << '\n';
}
}
void
test1(string str="fwefew()//")
{
string testSTr;
for (int z = 0; z < 10000000; ++z) {
int i = z % 1000;
testSTr.push_back(0);
{
//std::this_thread::sleep_for(std::chrono::seconds(1));
cout << "hello" << i;
}
}
for (auto && result : testSTr)
{
cout << 2 << '\n';
}
}
void
test2
(
)
{
string testSTr;
for (int z = 0; z < 10000000; ++z) {
int i = z % 1000;
testSTr.push_back(0);
{
//std::this_thread::sleep_for(std::chrono::seconds(1));
cout << "hello" << i;
}
}
for (auto && result : testSTr)
{
cout << 2 << '\n';
}
}
C/C++
1
https://gitee.com/deng_dan_jun/function_finishing.git
git@gitee.com:deng_dan_jun/function_finishing.git
deng_dan_jun
function_finishing
函数整理
master

搜索帮助