热卖商品
新闻详情
若输入\"how are you?\"则程序输出\"amfine.\"否则输出“”。要用到字符串...
来自 : 百度知道
发布时间:2021-03-24
/* How are you? I am fine. after swapping... I am fine. How are you? Press any key to continue */ #include #include void swap(char *,char *); int main() { char a[15] = How are you? ,b[15] = I am fine. cout a b endl; swap(a,b); cout after swapping... endl; cout a b endl; return 0; } void swap(char *x,char *y) { char temp[15]; strcpy(temp,x); strcpy(x,y); strcpy(y,temp); }
2019年3月25日/* How are you? I am fine. after swapping... I am fine. How are you? Press any key to continue */ #include #include void swap(...若输入"how are you?"则程序输出"amfine."否则输出“”。要用到字符串比较函数
2019年3月25日/* How are you? I am fine. after swapping... I am fine. How are you? Press any key to continue */ #include #include void swap(...若输入"how are you?"则程序输出"amfine."否则输出“”。要用到字符串比较函数
本文链接: http://amfinecom.immuno-online.com/view-679796.html
发布于 : 2021-03-24
阅读(0)
最新动态
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2017-10-17
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
品牌分类
Others
联络我们