09 2020 档案

摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 #define LIST_INIT_SIZE 100 4 #define LISTINCREMENT 10 5 #define OK 1 6 #define ERROR 0 7 #define OVERFLOW - 阅读全文
posted @ 2020-09-25 10:42 西南大学 阅读(92) 评论(0) 推荐(0)
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 #define LIST_INIT_SIZE 100 4 #define LISTINCREMENT 10 5 #define OK 1 6 #define ERROR 0 7 #define OVERFLOW - 阅读全文
posted @ 2020-09-24 09:30 西南大学 阅读(127) 评论(0) 推荐(0)
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 #define TRUE 1 4 #define FALSE 0 5 #define OK 1 6 #define ERROR 0 7 #define INFEASIBLE -1 8 #define OVERFLO 阅读全文
posted @ 2020-09-17 16:34 西南大学 阅读(127) 评论(0) 推荐(0)
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 int Max(int &e1,int &e2,int &e3){ 4 int max; 5 max = e1>e2?e1:e2; 6 max = max>e3?max:e3; 7 return max; 8 } 阅读全文
posted @ 2020-09-17 16:01 西南大学 阅读(153) 评论(0) 推荐(0)
摘要:1 #include<stdio.h> 2 void swap(int &n,int &m){ 3 int temp; 4 temp = n; 5 n = m; 6 m = temp; 7 } 8 int main(){ 9 int n,m,i,j; 10 printf("请输入两个数:\n"); 阅读全文
posted @ 2020-09-17 15:24 西南大学 阅读(52) 评论(0) 推荐(0)