char s[20]={"C语言延时输出"};
cout<<strlen(s)<<endl;
char chip[3];
int i=0;
while(s[i]!='\0')
{
if(s[i]<0)
{
chip[0]=s[i];
chip[1]=s[i+1];
i++;
chip[2]='\0';
printf("%s\n",chip);
}
else
{
printf("%c\n",s[i]);
}
i++;
}
return 0;
char s[20]={"C语言延时输出"};
cout<<strlen(s)<<endl;
char chip[3];
int i=0;
while(s[i]!='\0')
{
if(s[i]<0)
{
chip[0]=s[i];
chip[1]=s[i+1];
i++;
chip[2]='\0';
printf("%s\n",chip);
}
else
{
printf("%c\n",s[i]);
}
i++;
}
return 0;
上一篇:c语言float转bcd码
下一篇:c语言_双向链表代码
数组的打印(3种)及简单调用
public class IOTools {...
js打印数据类型
python 打印数组,在一个打印功能的Python打印数组
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M