c - C 程序在 MacOS 中启动缓慢
问题描述
我正在学习 c 编程教程,一个非常简单的 c 文件hello.c
:
#include <stdio.h>
int main(void) {
int num;
printf("Hello world! Give me an integer:\n");
scanf("%d", &num);
printf("Thanks! I've always been fond of %d.\n", num);
return 0;
}
来源:https ://www.cs.princeton.edu/courses/archive/fall02/cos126/assignments/hello-osx.html
gcc hello.c
然后在使用then编译并运行它./a.out
似乎在我看到之前有一个暂停Hello world! Give me an integer:
,./a.out
然后点击返回。
为什么呢?以及如何改进这家初创公司?
解决方案
推荐阅读
- c# - 列表框导出到图片
- python - 对象数据类型python中的矩阵
- sql - SQL Server 2012:DateDiff 在 where 子句中不包括周末
- debugging - Volttron 消息调试器没有路由到主机?
- c++ - TLS 握手成功后,服务器关闭并显示错误 SSL 例程:SSL3_GET_RECORD:wrong version number
- 4d-database - 如何在动态 4D 形式的表单对象变量的“事件”属性内链接字符串数组中的事件后,在代码中捕获事件?
- javascript - Facebook Javascript API fan_count
- c# - LINQ 加入多个表 - 即使为空也返回所有匹配项
- php - 如何编写具有两个入口点的简单 .htaccess
- c++ - 我在制作返回少数模板化参数 cpp 之一的函数时遇到问题