![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源码
文章平均质量分 73
Code_Lyoko
热爱编程
展开
-
【C++】井字棋
#include//时间种子#include#include//判断是否为数字的函数头文件using namespace std;int pd=0,j=0;//判断是否继续char shu[9];//圈圈叉叉void youxi();//游戏void shuchu();//输出void shuru();//输入void diannao();//电脑人原创 2012-09-14 20:02:53 · 1829 阅读 · 0 评论 -
【C++】猜数字游戏
#include#include//#include//Linux下需包含using namespace std;int duibi[4]={0};//随机数储存int sshu[4]={0};//输入数储存int js=0;//记录猜对了几个int main()//主函数{ char cx;//判断是否继续 cout<<"\t\t\t欢迎来原创 2012-09-14 20:04:02 · 1190 阅读 · 0 评论 -
【C++】字符串中找数字
#include#includeusing namespace std;int main(){ const int A=9,B=10; int a[A],shu[B],z=-1,max=0;//定义所需数组 char b; do{ int n=0,k=0,i=-1,j; cin.get(b);//接受一个字符 while(b>='0'&&b<='9原创 2012-09-14 19:56:08 · 1256 阅读 · 0 评论