#include<iostream>
#include<fstream>
#include<string>
using namespace std;
int main(){
const char *months[12]={"January", "February", "March", "April","May", "June", "July", "August","September", "October", "November", "December"}; // to check month is that true or false.
int day,year;
string first,last,month;
Person p(first,last,day,month,year);
ifstream infile; //opening input file
infile.open("input.txt");
while(!infile.eof()) {
}
}
}
I check the values in the Input file and print the correct ones in the output file.I call the setmonth function to check if the month is correct after checking if the day and year are correct in the Input file.
HOW CAN I SOLVE THIS ERROR? AND WHAT IS printInfo FUNCTION PARAMETER?