摘要: #include<iostream>using namespace std;#include <time.h>#include <stdlib.h> int main(){ int x; cout<<"输入任意数字开始。"<<endl; //使用 输入是否为 数字来判断是否继续猜 while(cin 阅读全文
posted @ 2017-11-02 14:52 EVAV_相 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include<stdlib.h>#include<stdio.h>#include<time.h> //suiji #include<string.h>#include<windows.h> //SLEEP函数struct Player //玩家结构体,并初始化player{ char name 阅读全文
posted @ 2017-11-02 14:50 EVAV_相 阅读(254) 评论(0) 推荐(0) 编辑
摘要: #include<iostream.h>#include<windows.h>#include<time.h>#include<stdlib.h>#include<conio.h>#define N 21void gotoxy(int x,int y)//位置函数{COORD pos;pos.X=2 阅读全文
posted @ 2017-11-02 14:47 EVAV_相 阅读(81) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>void input(float a[],int len){ int i; for(i=0;i<len;i++) { printf("请输入第%d个数:",i+1); scanf("%f",&a[i]); }}float sum(float a[],int len 阅读全文
posted @ 2017-11-02 14:40 EVAV_相 阅读(144) 评论(0) 推荐(0) 编辑