#include<iostream>
#include<fstream>
#include<string>
using namespace std;
const int max = 100;
int main()
{
fstream inputfile("inventory.txt");
string make[max];
string modle[max];
int number[max];
int qty[max];
double price[max];
string partname;
int i = 0;
for (; !inputfile.eof();i++)
{
inputfile >> make[i] >> modle[i] >> number[i] >> qty[i] >> price[i];
cout << make[i] << "\t" << modle[i] << "\t" << number[i] << "\t" << qty[i] << "\t" << price[i] << "\t" << partname[i] << endl;
}
return 0;
also max can't be an array of a string and an int.