摘要: sprintf函数 字符串格式化命令,主要功能是把格式化的数据写入某个字符串中。 sprintf函数原型在<studio.h>中。 sprintf( [指向输入格式化后的字符串的缓冲区的指针] , [格式化字符串] , [待转换值的标识符] ); #include <stdio.h> int mai 阅读全文
posted @ 2019-11-18 22:32 flyingpenguins 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 用dos命令创建 md [文件路径][文件名] C:\Users\admin>md C:\Users\admin\desktop\test 刷新一下桌面,就可以看见桌面上创建了一个名为test的文件夹。 用c语言创建 1 #include <stdio.h> 2 #include <direct.h 阅读全文
posted @ 2019-11-18 21:29 flyingpenguins 阅读(756) 评论(0) 推荐(0) 编辑
摘要: srtcat函数原型在c中的<string.h>中。 语法: strcat(字符串a,字符串b); #include <stdio.h> #include <string.h> int main(){ char a[50]="ch"; /*a一定为字符数组*/ char *b="ina"; strc 阅读全文
posted @ 2019-11-18 13:21 flyingpenguins 阅读(2617) 评论(0) 推荐(0) 编辑