计算机程序设计(c语言)-2022级气科类 (南京信息工程大学)

  • 实验2

    task1 (1)line 18 代码实现的功能是 :一个586 到781 间的随机数 (2)该程序的功能为随机生成586到781 之间的"真·随机数" task2 // .2.2.c.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h"#include <stdl
    大帅浩淇   2023-03-22 22:51   0   1
  • 实验二

    源程序1 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand(time(0)); f
    贾清萍   2023-03-22 22:41   0   3
  • 实验2

    task1 编程代码 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand(time(
    无良无常   2023-03-22 22:34   0   1
  • 实验二

    实验任务1 源码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand(time
    邵远   2023-03-22 22:19   0   3
  • 实验二

    任务一 问题一:生成R1到R2的随机数 问题二:生成随机学号 任务二 #include<stdio.h> int main() { double x, y; char c1, c2, c3; int a1, a2, a3; scanf("%d %d %d",&a1,&a2,&a3); getchar
    Cobalt丶o.O\   2023-03-22 22:18   0   4
  • 实验二

    #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand( time(0) );//以当前
    猫与ta‘   2023-03-22 22:12   0   3
  • 实践2

    #include<stdio.h> #include<math.h> #include<stdlib.h> #include<time.h> int main() { char n; while(n!=EOF) { n=getchar(); getchar(); switch(n) { case '
    微笑王子   2023-03-22 22:04   0   1
  • 实验2

    #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand( time(0) ); for
    o海滩长颈鹿o   2023-03-22 21:55   0   2
  • 实验2作业

    1.代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define R1 586 #define R2 701 int main () { int number; int i; srand(time(0)
    美琦   2023-03-22 21:55   0   4
  • 实验2

    实验1:生成随机码 问题:1.生成586 ~701之间的随机数 2.生成202283300586~202283300701的随机码 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define R1 586 #de
    mamammmm   2023-03-22 21:13   0   11