Chinaunix首页 | 论坛 | 博客
  • 博客访问: 88938
  • 博文数量: 37
  • 博客积分: 301
  • 博客等级: 民兵
  • 技术积分: 200
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-13 08:24
文章分类

全部博文(37)

文章存档

2013年(1)

2012年(36)

发布时间:2012-12-10 08:55:50

#include <stdio.h>#include <stdlib.h>#define N 20int a[N];void gen_random(int upper_bound){    int i;    for (i = 0; i < N; i++)        a[i] = rand() % upper_bound;}void print_random(){   &......【阅读全文】

阅读(551) | 评论(0) | 转发(0)

发布时间:2012-12-10 08:55:44

#include <stdio.h>#include <stdlib.h>#include <time.h>int main(void){    char gesture[3][10] = { "scissor", "stone", "cloth" };    int man, computer, result, ret;    srand(time(NULL));    while (1) {&n......【阅读全文】

阅读(646) | 评论(0) | 转发(0)

发布时间:2012-11-29 09:46:13

#define M 50 int  max ,  allocation ,need ,available ;   /*定义全局变量*/ int i, j,  n, m, r; main......【阅读全文】

阅读(763) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册