error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'
Run Code Online (Sandbox Code Playgroud)
我应该用这个代码做的是打开两个文件,读取文件,用函数和数组计算文件内部数字的均值和标准差.所以,我收到这个错误,我不确定我的代码有什么问题.我不确定代码有什么问题但它可能是函数吗?我的朋友看了我的代码并得到了这个错误,但之前没有.我应该在某个地方做一个参考,但我把它作为一个值而不是?有人可以帮忙吗?对不起,如果我在发帖时做错了什么.
#include <iostream>
#include <fstream>
#include <cmath>
#include <string>
#include <iomanip>
using namespace std ;
bool open(ifstream &A_bank, ifstream &B_bank) ;
void read(ifstream &A_bank, ifstream &B_bank, string &n1, string& n2, int &i, int& j, float &num, float &num1, float &total, float &total1, float counter, float counter1);
void avg(float &mean, float &mean1, float total, float total1, int i, int …Run Code Online (Sandbox Code Playgroud)