王老师:19139051760(拨打)复制微信 题目 更新时间:2023/4/3 [应用题,7.6分] 以下程序的功能是将一个字符串的内容颠倒过来。#include //或 #include#includevoid main(){int i, max;char ch;char str[]="1234567";for(i=0,j=strlen(str)-1;[<>];[]){ch=str[i];[];str[j]=ch;}printf("%s\n", str); //或 cout<<><>} 答案 登录 注册 以下程序的功能是将一个字符串的内容颠倒过来。#include //或 #include #include void main(){int i, max;char ch;char str[]="1234567";for(i=0,j=strlen(str)-1;[ 出自:青书学堂 >> 许昌学院面向对象程序设计 许昌学院继续教育学院