#include "stdafx.h"
#include < stdio.h >
#include < omp.h >
#include <iostream>
using namespace std;
int main()
{
omp_set_num_threads( 2 );
#pragma omp parallel
printf( " Hello from Thread NO.%d/n " ,omp_get_thread_num());
system("pause");
return 0 ;
接下来有时间得研究这个库了。。。。