自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 C语言,计算字符串长度,不用strcat

#include <stdio.h>main(){ char a[100]; int i=0; gets(a); while(a[i]!='\0') i++; printf("%d",i);}

2018-05-27 23:06:10 952

原创 C语言,连接2个字符串,不用strcat

#include <stdio.h>main(){ char a[100],b[100]; int i=0,j=0; printf("Please input 2 strings:\n"); gets(a); //输入字符串啊,a,b gets(b); while(a[i]!='\0') i++; // i 表示字符串a的'\0'所在的位置 ...

2018-05-27 22:59:56 27947 2

原创 C语言,将字符串str内容倒置输出

#include <stdio.h>#include <string.h>int main(){ char str[]="abcdefg"; int i,j,k; j=strlen(str)-1; for(i=0;i<j;i++,j--) { k=str[i]; str[i]=str[j]; str[j...

2018-05-27 22:20:58 14907

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除