int parse_file(string namefile, string *quote, string* author, string *year, int nline, int linetoreturn) { int counter=0; int i=0; int k=0; linetoreturn=2; char quotec[MAX_CHAR]; char authorc[MAX_CHAR]; char yearc[MAX_CHAR]; char *vettore[3]; vettore[0]="ec[0]; vettore[1]=&authorc[0]; vettore[2]=&yearc[0]; int lunghezze[2]; std::ifstream inf(namefile.c_str()); if (!inf) { cout << "Error opening the file: "+namefile+" Aborting "<"; } } if (ch=='\n') { counter++; lunghezze[k]=i; cout<<"I"<"; } } } for(int ki=0;ki<3;ki++){ //cout<