代码:
#include "stdafx.h" #include "stdio.h" int _tmain(int argc, _TCHAR* argv[]) { char buf[1024]; while(fgets(buf,1024,stdin)!=NULL){ printf("%s %s","你输入了:",buf); } return 0; }
输出:
1234*23 你输入了: 1234*23 2+5 你输入了: 2+5
--2020年6月6日--
代码:
#include "stdafx.h" #include "stdio.h" int _tmain(int argc, _TCHAR* argv[]) { char buf[1024]; while(fgets(buf,1024,stdin)!=NULL){ printf("%s %s","你输入了:",buf); } return 0; }
输出:
1234*23 你输入了: 1234*23 2+5 你输入了: 2+5
--2020年6月6日--
在控制台输入输出中,有时候我们想获取用户输入的空格,该如何做呢?在C++
额……首先是有一个需求,两个显示器,程序自动获取自己
在Java中使用标准输入输出设备进行字符串、整数浮点数等的输入输出操作 &nbs
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M