如何让C++程序导入数据文件中人数组
如何让C++程序导入数据文件中人数组
日期:2016-02-19 18:21:16 人气:1
#include
#include
using namespace std;
int main()
{
int a[3];
int b[8][5];
int i, j;
char c;
fstream file("data.txt");
if(!file)
{
cout << "data error!";
return 0;
}
file >> a[0] &g