摘要:
1 #include <stdio.h> 2 #define N 5 3 // 定义结构体类型struct student,并定义STU为其别名 4 typedef struct student 5 { 6 long no; 7 char name[20]; 8 int score; 9 } STU 阅读全文
摘要:
1 #include <stdio.h> 2 #define N 5 3 int binarySearch(int *x, int n, int item); // 函数声明 4 int main() 5 { 6 int a[N] = {2, 7, 19, 45, 66}; 7 int i, ind 阅读全文
摘要:
1 #include <stdio.h> 2 #define N 5 3 void output(int x[], int n); 4 int main() 5 { 6 int x[N] = {9, 55, 30, 27, 22}; 7 int i; 8 int k; 9 int t; 10 pri 阅读全文
摘要:
1 #include<stdio.h> 2 #include<stdlib.h> 3 const int N = 4; 4 int main(){ 5 int a[N]={2,0,2,1}; 6 char b[N]={'2','0','2','1'}; 7 int i; 8 printf("size 阅读全文