C++的小小问题,望朋友帮忙

[复制链接]
查看11 | 回复0 | 2008-7-20 21:17:43 | 显示全部楼层 |阅读模式
这是一个关于时间转换的程序:
#include
using namespace std;
int main()
{int h,m,t;
cout>h;
cout>m;
if(h>24)
cout12)
t=h-12;
cout24) cout12) {t=h-12; cout>h; cout>m; if(h>24) cout<<"error";
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行