程序设计基础-2021级 (南京信息工程大学)

  • 实验四*-*

    /4.1/ #include<stdio.h> int main(){ int a[2][3] = {{1,2,3},{4,5,6}}; char b[2][3] = {{'1','2','3'},{'4','5','6'}}; int i,j; for(i = 0;i < 2; ++i) for(
    BS--HARD   2021-12-01 15:26   0   11
  • 实验4

    task1_1.cpp #include<stdio.h> const int N = 4; int main() { int a[N] = {2,0,2,1}; char b[N] = {'2','0','2','1'}; int i; printf("sizeof(int) = %d\n", s
    陆鹏宇   2021-12-01 11:40   0   12
  • 实验四

    实验一 #include <stdio.h> const int N = 4; int main() { int a[N] = { 2,0,2,1 }; char b[N] = { '2','0','2','1' }; int i; printf("sizeof(int)=%d\n", sizeof
    IU是春天呐   2021-12-01 11:39   0   16
  • 实验4

    #include<stdio.h> const int N=4; int main(){ int a[N]={2,0,2,1}; char b[N]={'2','0','1','1'}; int i; printf("sizeof(int)=%d\n",sizeof(int)); printf("s
    ncy0912   2021-12-01 11:39   0   6
  • 实验4

    1_1 #include<stdio.h> const int N = 4; int main(){ int a[N]={2,0,2,1}; char b[N]={'2','0','2','1'}; int i; printf("sizeof(int)=%d\n",sizeof(int)); pri
    方振宇   2021-12-01 11:33   0   2
  • 实验4-数组

    #任务1 ##task1.1 #include<stdio.h> const int N = 4; int main() { int a[N] ={2, 0, 2, 1}; char b[N] = {'2','0','1','1'}; int i; printf("sizeof(int) = %d\
    Konpaukuy   2021-12-01 11:32   0   32
  • 实验4

    第一题 #include <stdio.h> const int N = 4; int main() { int a[N] = { 2, 0, 2, 1 }; // 定义一个int型数组a,包含N个元素 char b[N] = { '2', '0', '1', '1' }; // 定义一个char型
    後海不是海王   2021-12-01 11:24   0   15
  • 实验3 函数

    实验一: task1_1源码: #include <stdio.h> long long fac(int n); int main() { int i, n; printf("Enter n: "); scanf("%d", &n); for (i = 1; i <= n; ++i) printf(
    gl11639   2021-12-01 08:54   1   6
  • 实验三

    #include <stdio.h> long long fac(int n); // 函数声明 int main() { int i, n; printf("Enter n: "); scanf("%d", &n); for (i = 1; i <= n; ++i) printf("%d! = %
    枝鹊不惊   2021-11-30 23:22   0   1
  • 实验三

    #include <stdio.h> int func(int, int); int main() { int k = 4, m = 1, p1, p2; p1 = func(k, m); p2 = func(k, m); printf("%d,%d\n", p1, p2); return 0; }
    郭家豪   2021-11-30 23:20   0   2