![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++函数
hzk0918
这个作者很懒,什么都没留下…
展开
-
(纯ASCII码)猜数字游戏
#include <bits/stdc++.h> using namespace std; void Delay(int time) { clock_t now = clock(); while( clock() - now < time ); } void post(int n) { char a[30]; a[1]=72; a[2]=101; a[3]=108; a[4]=a[3]; a[5]=111; a[6]=32; a.原创 2021-08-26 21:39:51 · 439 阅读 · 0 评论 -
c++:用iostream库制造cmath库函数
用iostream库制造3个cmath函数:abs,pow,sqrt. #include <iostream> using namespace std; int abs(int x){ return x>=0?x:-x; } int pow(int x,int y){ long long turn=1; for(int i=0;i<y;i++){ turn*=x; } return turn; } int sqrt(int x){ int tun=0; for(原创 2021-08-26 21:35:32 · 288 阅读 · 0 评论