![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
运行与调试
silverxinger
技术爱好者
展开
-
重定向文件
<br />#include "stdafx.h"#include<iostream>#include<math.h>#include<string>#include<time.h>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); /* 程序文件 */原创 2010-11-12 22:10:00 · 235 阅读 · 0 评论 -
测试时间
<br />#include "stdafx.h"#include<iostream>#include<math.h>#include<string>#include<time.h>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ double t1=clock(); /* */ double t2=clock(); printf("Time Used = %.2lf/n",(t原创 2010-11-12 20:23:00 · 398 阅读 · 0 评论 -
文件输入输出(非重定向)
<br />#include "stdafx.h"#include<iostream>#include<math.h>#include<string>#include<time.h>using namespace std;#define INF 1000000000int _tmain(int argc, _TCHAR* argv[]){ FILE *fin, *fout; fin = fopen("data.in", "rb"); fout = fopen原创 2010-11-12 22:25:00 · 264 阅读 · 0 评论