
C++
文章平均质量分 67
如果没有明天IIDT
编程之路求大神指教
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ1001 且适合带小数点大数的幂(R^N)
/** \function calculator R^N * * \param * \param * \return * */ #include #include #include using namespace std; //big number multiplication. //str1 is the first number. //str2 is the secon原创 2016-09-03 19:15:46 · 436 阅读 · 0 评论 -
HIT1004
1、C++打表方式如下 #include #include using namespace std; int main() { ofstream outfile("out.txt"); streambuf *streams=cout.rdbuf();//保存原来的cout对象 cout.rdbuf(outfile.rdbuf()); cout<<"打表正确哈哈"<<endl; cout.原创 2016-09-07 21:38:35 · 489 阅读 · 0 评论 -
POJ1002 487-3279
用G++超时,网上说C++时间短,然后就AC了。 /** \function:calculate if the telephone numbers are the same, * output the numbers and the repeat times * \param * \param * \return * */ #include #includ原创 2016-09-08 18:53:46 · 244 阅读 · 0 评论 -
POJ 1006 生理周期(水)
#include using namespace std; int main() { int cnt,p0,e0,i0,day,temp,casenumber=1; while(1) { cin>>p0>>e0>>i0>>day; if (day==-1) break; for(cnt=1;;cnt++)原创 2016-09-08 19:59:57 · 279 阅读 · 0 评论 -
第一个MFC程序!!!
国庆三天半写了一个MFC程序,帮小润仔完成了公司的编程比赛,他说奖金分我一半的,可以可以哈哈哈!点击打开链接原创 2016-10-04 19:17:35 · 576 阅读 · 0 评论 -
质因数分解
#include <iostream> #include <vector> #include <cmath> using namespace std; //判断是否为质数 bool isPrime(long num) { //两个较小数另外处理 if(num == 2 || num == 3) return 1 ; //...原创 2018-05-10 20:48:22 · 275 阅读 · 0 评论