1、C++加速for循环的方法
step 1:
#include<omp.h> //头文件加入
#pragma omp parallel for //for循环前面加入此段话
for(int i = 0; i < 10; i++)
{
}
step 2:
1、C++加速for循环的方法
step 1:
#include<omp.h> //头文件加入
#pragma omp parallel for //for循环前面加入此段话
for(int i = 0; i < 10; i++)
{
}
step 2: