Hey guys, i'm still trying to get the hang of the this programming thing so bare with me here. i'm trying figure out a way to pull out the integers in file, the file contains integers and chars, and put them in an array of 12 structures i'm able to read in the file and display the file, but i'm honestly not sure what the next logical step is... here is what i have so far.



#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <cstring>
using namespace std;

const int A_YEAR = 12;

struct months

{

int landed;
int departed;
int most;
int least;

};

int main()

{
months air[12];
ifstream inFile;
string filename;
string data;
char input[100000];
int test;




cout << "Enter the name of the input file ";
getline(cin, filename);
inFile.open(filename.c_str());

int count = 0;
while (getline(inFile, data))
{
cout << data << endl;
count ++;
}














system("pause");
return 0;
}



any help would be great