编写一个函数 intcharnum(char fn[ ]),该函数打开文件fn,,通过统计,返回文件中字符的个数。
请在程序( )位置填入适当的一条语句使程序完整。
请注意本题中的3个空//8, //9, //10 分别对应问题8,问题9和问题10 ,本题只需填入第一空位置//8 处的答案。
#include #include using namespace std; int charnum(char fn[]); int main() {int num; num=charnum("abc.txt"); cout<
请在程序( )位置填入适当的一条语句使程序完整。
请注意本题中的3个空//8, //9, //10 分别对应问题8,问题9和问题10 ,本题只需填入第一空位置//8 处的答案。
#include #include using namespace std; int charnum(char fn[]); int main() {int num; num=charnum("abc.txt"); cout<