1 char pp[100]; 2 char *kl = pp; 3 strcpy(kl,"23456"); 4 kl += 7; 5 strcpy(kl,"abcde"); //this will not show,because 0 is before them 6 cout << pp << "33" << endl; 7 //cout << pp+7 << "33" << endl;
转载于:https://www.cnblogs.com/lijinping/p/5873481.html
最后
以上就是伶俐蛋挞最近收集整理的关于字符串以0为结束标志的全部内容,更多相关字符串以0为结束标志内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复