C++ 函数调用及结果分析问题?
[b]#include<<iostream>>using namespace std;
void Usefile(ifstream &inp,int c[])//假定inp所对应的文件保存有n个整数。
{
for(int i=0;i<10;i++)
c[i]=0;
int x;
while(inp>>x)
{
i=x%10;
c[i]++;
}
}
求解释一下usefile函数结果表示什么意思?主函数应怎样写?
2014-09-21 16:26

2014-09-21 17:33

2014-09-21 18:33
2014-09-21 22:36

2014-09-23 08:18
2014-10-14 20:11