求编写下列C++程序

[复制链接]
查看11 | 回复3 | 2011-3-9 21:14:47 | 显示全部楼层 |阅读模式
//-------------------------------第一问----------------------------#include int main(void){ int Data; Data=12345; while (Data>0) {
printf("%d",Data%10);Data=Data/10; }
return 0;}//-------------------------------第二问----------------------------#include int main(void){ i...
回复

使用道具 举报

千问 | 2011-3-9 21:14:47 | 显示全部楼层
#include#includeusing namespace std;void output(string str)//将字符串12345逆向输出{ int len = str.length(); for(int i=len-1; i>=0; i--){cout<<str; ...
回复

使用道具 举报

千问 | 2011-3-9 21:14:47 | 显示全部楼层
额。。。三个问题,竟然没有一点点分啊?...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行