【发布时间】:2014-03-18 20:28:36
【问题描述】:
我在开始我的项目时遇到了很多麻烦。以下是路线:
"Complete counts.c as follows:
Read characters from standard input until EOF (the end-of-file mark) is read. Do not prompt the user to enter text - just read data as soon as the program starts.
Keep a running count of each different character encountered in the input, and keep count of the total number of characters input (excluding EOF)."
我的教授给我的开始格式是:`
#include <stdio.h>
int main(int argc, char *argv[]) {
return 0;
}
除了如何开始这个问题,我也很困惑为什么在没有任何东西传递给它的情况下,为什么在 main 函数中给出了两个参数。帮助将不胜感激!谢谢!
`
【问题讨论】:
标签: c memory-management scanf dynamic-memory-allocation argc