C语言中字符串存储方法
众所周知,C语言中没有数据类型能够存储字符串,
char数据类型仅仅能够存储一个字符的数据,那么在C语言中关于存储字符串这一难题我们改何去何从呢?
下面将详述相关的字符串存储方法;
1,使用字符数组存;
[root@Qrui ruiy]#
#include<stdio.h>
int main(int argc,const char *argv[],const char **env[]) { char name[] = "qinrui";//定义一个字符数组,并初始化;
char *cPoint;//定义一个指针;
cPoint = name; //将指针指向数组; printf("%s\n",name);//使用指向数组的指针打印字符数组中的字符串;
printf("%c\n",name[]);//打印出字符数组的第5个字符,即u字符同上打印字符数组的第5个字符,但是使用的方法是指针的位偏移;
printf("%c\n",*(cPoint+));//作用
}
2,使用字符指针存储字符串;
#include<stdio.h>
int main(int argc,const char *argv[],const char **env[]) {
char *cPoint = "qinrui";
printf("%s\n",cPoint);
}
总结;从上面2中C语言中的字符串存储的方法可以看出,
使用字符数组可以打印字符串中的某个字符,但是字符指针却不可以,
3,可以把字符串a赋值给字符串b,但请注意字符串都是以\0结尾的;
字符指针变量指向格式字符串
char *format = "a = %d";
可以使用printf直接输出;
指针数组中每一个元素都是一个指针;其指向不同的区域,
指针相减得到 是相差的个数,而不是字节数;
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmQAAADUCAIAAAC9Jqi3AAAa5ElEQVR4nO2dLXTrPLNGBQsLSwsLC0sDAwtDAwMLSwMPLDz0wg++MLTwwMLSwEBDXZDEtS1pNJLl+Kd7r1ldtiyPRnaqJ1Jk2VgAAAAQMT9b639m/WXWX2b1ZVZfZv19sdejeT2aTcO2J7M5mc3RbE4YhmEYtnyz1l40cluZN3v/bh/29mFvH/f28Y99/mOfP+wLhmEYhv1iM2b9ZTYns63M7iKWP3r552JPHz/2fLUnDMMwDPsdZszr0bx+m+2pZbvK7Cqzs+YNwzBs6bbDsJiZ9T+z+W7Y0ZHMFNtiGIZh2OLMrP+Z1++LuXrpFU736NlG/wEWwzAMw4Yws/pn1l9xsYwL5BHDMAzDpmzbj9PxlPzcyPbDI5ZH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AAi3F4sDXoJAADzgp4lAABABMQSAAAgQsH3WSpFELEEAICZceNFCVBKAACYH6zgAwAAEAGxBAAAiIBYAgAAREAsAQAAIiCWAAAAERBLAACACIglAACAzP8DG8PQLgvSphsAAAAASUVORK5CYII=" alt="" />
C语言中字符串存储方法的更多相关文章
- Go语言中字符串的查找方法小结
这篇文章主要介绍了Go语言中字符串的查找方法小结,示例的main函数都是导入strings包然后使用其中的方法,需要的朋友可以参考下 1.func Contains(s, substr strin ...
- C语言中字符串详解
C语言中字符串详解 字符串时是C语言中非常重要的部分,我们从字符串的性质和字符串的创建.程序中字符串的输入输出和字符串的操作来对字符串进行详细的解析. 什么是字符串? C语言本身没有内置的字符串类型, ...
- C语言中常用计时方法总结
转自:http://blog.csdn.net/fz_ywj/article/details/8109368 C语言中常用计时方法总结 1. time() 头文件:time.h 函数原型:time_t ...
- C语言中字符串的格式化
本文整理转载自:http://wenku.baidu.com/view/065d62fff705cc1755270989.html C语言中格式字符串的一般形式为: %[标志][输出最小宽度][.精度 ...
- c语言中字符串跨行书写的问题
字符串常量定义时的换行问题 如果我们在一行代码的行尾放置一个反斜杠,c语言编译器会忽略行尾的换行符,而把下一行的内容也算作是本行的内容.这里反斜杠起到了续行的作用. 如果我们不使 ...
- C语言中字符串结束符'\0'
转自:http://www.cnblogs.com/kaituorensheng/archive/2013/12/09/3464462.html 本质 '\0'就是8位的00000000,因为字符类型 ...
- javascript中字符串的方法
字符串的方法 charAt();返回字符串指定索引的字符: concat();连接两个或多个字符串: indexOf();返回字符串中检索指定字符第一次出现的位置: lastIndexOf();返回字 ...
- c语言中字符串数组初始化的一点总结&& c++访问控制的三种方式
char *c[]={"ONE","TWO","THREE","FOUR"}; // c语言中定义了一个字符串数组(也称 ...
- js中字符串的方法
js String对象中常用方法小结,需要的朋友可以参考下: 1.charCodeAt方法返回一个整数,代表指定位置字符的Unicode编码. strObj.charCodeAt(index) 说明: ...
随机推荐
- 电脑技巧合集 - imsoft.cnblogs
● 如何制作网页● 教你建一个别人打不开的文件夹 ● 只改一个值!马上加快宽带上网速度 ● 在电脑右下角显示你的名字● XP系统如何加快开机速度● 连接宽带时出错表示的意思 ● 恢复丢失数据的方法● ...
- Complete the Word
ZS the Coder loves to read the dictionary. He thinks that a word is nice if there exists a substring ...
- cin和cout详解
无论输入数字还是字符串,一个回车键是把输入的这个东西送到变量中,可以一次性送到 一个(或者多个)空格键是分隔这些值的 cout <<N; for(int i=0;i<5;i++) { ...
- pipelinedb Continuous transforms 操作
Continuous transforms 可以进行数据的转换,数据是不进行存储,主要是可以加入到其他的stream pipeline 中,或者写到其他外部 存储中,和存储过程结合使用,当前默认内置一 ...
- smarty学习——编程知识
smarty 提供了丰富的api 接口可以方便我们进行操作: 1.clear_all_assign清除所有赋值 2.clear_all_cache清除所有缓存 3.clear_assign清除赋值 4 ...
- 【MVC】View的使用
/Views/_ViewStart.cshtml 文件会在其他视图文档被加载之前被载入,代码如下: @{ Layout = "~/Views/Shared/_Layout.cshtml&qu ...
- 将svnserve部署为后台服务
由于svnserve运行模式没有部署为后台服务,很容易被人误关掉.于是在网上查了一下,发现也已经有人总结了.Copy过来,以作备忘. 以前的svnserve要想成为windows服务,必须依赖于svn ...
- VPC/VM/VBOX安装GHOST版的无法启动系统
本人最近在安装一些公司的虚拟机,方便开发使用,不用每次都安装几个小时的装机和安装软件,但是本次却遇到了一点问题,虚拟机安装完成后一直无法进入系统,只有一个光标在黑色的屏幕上一闪一闪的,也没有任何错误提 ...
- bzoj 4556 [Tjoi2016&Heoi2016]字符串——后缀数组+主席树
题目:https://www.lydsy.com/JudgeOnline/problem.php?id=4556 本来只要查 ht[ ] 数组上的前驱和后继就行,但有长度的限制.可以二分答案解决!然后 ...
- POJ1191棋盘分割
题目:http://poj.org/problem?id=1191 1.分析式子!!! 发现xba是定值,σ的大小仅和∑ xi^2 有关.故dp条件是平方和最小. 2.分出一块就像割掉一条,只需枚举从 ...