|
![]() | 作者: None [jacky8714]
![]() |
登录 |
代码如下: /* code4.c---将年龄转换成秒数 */ #include <stdio.h> #define SY 3.156 int main(void) { int ages; float seconds; printf("Please enter your age:"); scanf("%f", &ages); seconds = SY * 107 * ages; printf("You have been in the world for %f seconds", seconds); getch(); getch(); return 0; } 问题RT,谢谢各位了! ![]() |
地主 发表时间: 04-01-23 17:21 |
![]() | 回复: tommy_he [tommy_he] ![]() |
登录 |
你把GETCH()改成GETCHAR()看下啊,我机器上就可以了! |
B1层 发表时间: 04-01-23 19:34 |
![]() | 回复: None [jacky8714] ![]() |
登录 |
改了的,没办法。但是其他程序却可以的。 补充下,用的是TC2.0的编译器 [此贴被 None(jacky8714) 在 01月23日20时13分 编辑过] |
B2层 发表时间: 04-01-23 20:13 |
![]() | 回复: None [jacky8714] ![]() |
登录 |
有人知道吗? |
B3层 发表时间: 04-01-27 21:05 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号