19年7个月前IP:未同步
30976
10楼

用int main代替void main 编译通过了 但是还是一闪而过 system pause没用

我 吐血 ~~

以下为代码 只是测试一下
#include <stdio.h>
# define Pi 3.141592653
int main()
{

float r,l,S;
printf(\"请输入圆的半径\");
scanf(\"%d\",r);
l=2*Pi*r;
S=Pi*r*r;
printf(\"圆的周长是%d,面积是%d\",l,S);
system(\"pause\");
}
输入数字 一闪而过 什么也看不到 于是 我输入字母 结果~~


3677_23868_2598.jpg

评论
文号 / 30976

万流景仰
名片发私信
学术分 10
总主题 81 帖总回复 903 楼拥有证书:学者 笔友
注册于 2006/11/29 22:45:00最后登录 2018/01/10 01:15:25
主体类型:个人
所属领域:无
认证方式:邮箱
IP归属地:0

个人简介

这个家伙很懒,什么都不告诉你

笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的