2014年9月24日

摘要: // Pi.cpp : 定义控制台应用程序的入口点。//求圆周率PI#include "stdafx.h"#include #include #include #include using namespace std;static long num_steps=1000000000;//定义所分的块... 阅读全文
posted @ 2014-09-24 11:16 程序+爱=人生 阅读(1525) 评论(0) 推荐(0) 编辑
 
摘要: // Sum_section.cpp : 定义控制台应用程序的入口点。//section功能:;//1.指定其内部的代码划分给线程中某个线程,不同的section由不同的线程执行;//2.将一个任务划分成独立的几个section,且section之间是并行执行的;#include "stdafx.h... 阅读全文
posted @ 2014-09-24 11:02 程序+爱=人生 阅读(1012) 评论(0) 推荐(0) 编辑