1 Star 0 Fork 0

CoderQi/cg初学

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
qimo33.cpp 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
CoderQi 提交于 2023-03-03 23:32 +08:00 . 33qimo
#include<iostream>
using namespace std;
//int main()
//{
// /*int k = 1000;
// do
// {
// ++k;
// } while (k >= 10000);
// cout << k << endl;*/
// /*int s = 36;
// while (s)
// --s;
// cout << s << endl;*/
// /*char str[] = "abcd";
// int n = strlen(str);
// cout << n << endl;*/
// double fun(double eps)
// /*不得改动此注释文字及位置,begein*/
// {
// int s1 = 1;
// int s2 = 1;
// int i = 1;
// int j = 3;
// double s3 = 1.0;
// double s4 = 0.0;
// while (s4 < eps)
// {
// s1 *= i;
// s2 *= j;
// s4 = s1 * 1.0 / s2;
// s3 += s4;
// i++;
// j += 2;
// }
// return 2.0 * s3;
//
//
// }
// return 0;
//}
//#include <stdio.h>
//#include <math.h>
//double fun(double eps)
///*不得改动此注释文字及位置,begein*/
//{
// int s1 = 1;
// int s2 = 1;
// int i = 1;
// int j = 3;
// double s3 = 1.0;
// double s4 = 0.0;
// while (s4 < eps)
// {
// s1 *= i;
// s2 *= j;
// s4 = s1 * 1.0 / s2;
// s3 += s4;
// i++;
// j += 2;
// }
// return 2.0 * s3;
//
//
//}
///*不得改动此注释文字及位置,end*/
// void NONO()
//{
// FILE* fp, * wf;
// int i;
// double x;
//
// fp = fopen("bc04.in", "r");
// if (fp == NULL) {
// printf("数据文件bc04.in不存在!");
// return;
// }
// wf = fopen("bc04.out", "w");
// for (i = 0; i < 10; i++) {
// fscanf(fp, "%lf", &x);
// fprintf(wf, "%lf\n", fun(x));
// }
// fclose(fp);
// fclose(wf);
//}
//main()
//{
// double x;
// printf("Input eps:");
// scanf("%lf", &x); printf("\neps = %lf, PI=%lf\n", x, fun(x));
// NONO();
//}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/programmercg/cg-beginner.git
git@gitee.com:programmercg/cg-beginner.git
programmercg
cg-beginner
cg初学
master

搜索帮助