![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言
Nefelibata莫奈
这个作者很懒,什么都没留下…
展开
-
2021-09-09
C语言冒泡法 :输入n个数字,进行排序从小到大排序 #include<stdio.h> void main() { int a[10],i,j,t,n; 数组定义的数字个数,最多十个数字进行比较,(自定义) printf(“please input the value of n(n<=10):”); scanf("%d",&n);原创 2021-09-09 11:21:49 · 112 阅读 · 0 评论 -
2021-05-11
C语言,字符串的拷贝函数 1、stcpy()拷贝函数 C语言 strcpy() 函数用于对字符串进行复制(拷贝)。 头文件:string.h 语法/原型: char* strcpy(char* strDestination, const char* strSource); 参数说明: strDestination:目的字符串。 strSource:源字符串。 strcpy() 会把 strSource 指向的字符串复制到 strDestination。 必须保证 strDestination 足够大,能够容原创 2021-05-11 12:13:13 · 59 阅读 · 0 评论