上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 阅读全文
posted @ 2021-10-06 13:59 major825 阅读(107) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-06 13:55 major825 阅读(80) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 3 int a[8] = {0}; 4 void main(){ 5 int i; 6 int num,data; 7 printf("please input 7 number:"); 8 for(i = 0;i < 7;i++) 9 { 10 //pr 阅读全文
posted @ 2021-10-06 12:20 major825 阅读(133) 评论(0) 推荐(0)
摘要: 1 #include <stdlib.h> 2 #include <stdio.h> 3 #define N 32 4 int my_atoi(char *s); 5 int main() 6 { 7 char a[N]; 8 scanf("%s", a); 9 int num = 0; 10 nu 阅读全文
posted @ 2021-10-06 11:31 major825 阅读(430) 评论(0) 推荐(0)
摘要: #include<stdio.h> int fibo(int n) { if( n < 0) { return -1; }else if(n == 0 || n == 1){ return 1; } int ret = n*fibo(n-1); return ret; } int main(int 阅读全文
posted @ 2021-10-06 10:37 major825 阅读(309) 评论(0) 推荐(0)
摘要: #include<stdio.h> int fibo(int n) { if( n == 0) { return 0; }else if(n == 1){ return 1; } return fibo(n-2) + fibo(n-1); } int main(int argc, const cha 阅读全文
posted @ 2021-10-06 10:32 major825 阅读(53) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<assert.h> #include<string.h> #define N 50 // int my_strcmp(char *dest, char *src) // { // assert((dest != NULL)&&(src != NU 阅读全文
posted @ 2021-10-05 23:42 major825 阅读(104) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<assert.h> #include<string.h> #define N 50 // char *my_strcat(char *dest, char *src) // { // assert((dest != NULL)&&(src != 阅读全文
posted @ 2021-10-05 22:53 major825 阅读(70) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 #include<assert.h> 3 #include<string.h> 4 5 #define N 20 6 char *my_strcpy(char *dest, char *src) 7 { 8 assert((dest != NULL)&&( 阅读全文
posted @ 2021-10-05 22:19 major825 阅读(92) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 #include<assert.h> 3 int my_strlen(const char *strDest) 4 { 5 6 assert(strDest != NULL);//断言:判断表达式一定为真,若为假,则终止程序 7 8 if(*strDest 阅读全文
posted @ 2021-10-05 20:07 major825 阅读(156) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 下一页