上一页 1 ··· 3 4 5 6 7
摘要: C语言strcat()库函数的实现#include#includevoid MyStrcat(char *dstStr, char *srcStr){ int a,b,i; a=strlen(dstStr); b=strlen(srcStr... 阅读全文
posted @ 2017-09-08 20:59 Newtol 阅读(341) 评论(0) 推荐(0) 编辑
摘要: C语言根据国家英文首字母进行排序#include #include #define MAX_LEN 10#define N 150void SortString(char str[][MAX_LEN],int n);int main(){ ... 阅读全文
posted @ 2017-09-08 20:21 Newtol 阅读(2308) 评论(0) 推荐(0) 编辑
摘要: C语言使用递归法计算n的阶乘#include long Fact(int n);int main(){ int n; long ret; printf("Input n:"); scanf("%d",&n); ret =Fact... 阅读全文
posted @ 2017-09-08 19:58 Newtol 阅读(1735) 评论(0) 推荐(0) 编辑
摘要: C语言实现对字符串的逆序输出方法一:#include #include #include void Inverse(char str[], char ptr[]);int main(){ char str[100]; char ptr[100];... 阅读全文
posted @ 2017-09-08 16:51 Newtol 阅读(1941) 评论(0) 推荐(0) 编辑
摘要: C语言strcpy()库函数的实现 strcpy()是C语言对字符串处理的库函数中的一种; 参数类型为: char stra;const char strb; 函数为: char *strcpy(stra,strb);/*其中str... 阅读全文
posted @ 2017-09-08 16:23 Newtol 阅读(1279) 评论(0) 推荐(0) 编辑
摘要: C语言用指针实现两数组的值互换#include #define N 10void ReadData(int a[], int n);void PrintData(int a[], int n);void Swap(int *x, int *y);int m... 阅读全文
posted @ 2017-09-08 15:07 Newtol 阅读(2958) 评论(0) 推荐(0) 编辑
摘要: 计算一个英文单词中有几个字母计算一篇以空格为分隔符的文章中单词的数目计算一个英文单词中有几个字母#include #include unsigned int MyStrlen(const char str[]){ int i; unsigned ... 阅读全文
posted @ 2017-09-08 14:57 Newtol 阅读(471) 评论(0) 推荐(0) 编辑
摘要: C语言实现通过日期计算这是一年中的第几天 用户通过输入具体的年月日,来计算这是一年中的第几天,具体代码如下:#include int DayofYear(int year, int month, int day) { int i,mm,days=0; i... 阅读全文
posted @ 2017-09-07 23:07 Newtol 阅读(2629) 评论(0) 推荐(0) 编辑
摘要: C语言实现在字符串中插入空格方法一 :#include #include #include #define N 100void Insert(char *s);int main(){ char str[N]; printf("Input a st... 阅读全文
posted @ 2017-09-07 22:49 Newtol 阅读(4787) 评论(0) 推荐(0) 编辑
摘要: 什么是redis?如何在windows上安装redis?什么是redis?Redis 是完全开源免费的一个高性能的key-value数据库。Redis支持数据的持久化,可以将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用。Redis不仅仅支持简单的... 阅读全文
posted @ 2017-09-07 21:32 Newtol 阅读(386) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7