max,6,13.6,84.9,10.1,47.4
123456789101112131415161718192021222324252627
#include <iostream> #include <fstream> using namespace std; int main () { char name[200]={'\0'}; int num[100]={0}; float arr1[100]={0}; float arr2[100]={0};; float arr3[100]={0}; float arr4[100]={0}; int count=0; ifstream file; file.open("test.txt"); while(!(file.eof())) { file >> name[count]; file >> arr1[count]; file >> arr2[count]; file >> arr3[count]; file >> arr4[count]; count++; } }
max 6 13.6 84.9 10.1 47.4
6 13.6 84.9 10.1 47.4