rendered paste body#include <cstdio>#include <ctype.h>#include <string>#include <iostream>using namespace std;int main (void){ int i=0; int wordnumber=0; int stringSize=0; int amountOfWords=0; FILE *INPUT; INPUT = fopen( "query.in", "r"); //checks how many lines while (!feof(INPUT)) { if (fgetc(INPUT) == ' ' ) {amountOfWords++;} stringSize++; } cout << stringSize << " " << amountOfWords ; INPUT = fopen( "query.in", "r"); string wordlist[amountOfWords+1]; i=0; wordnumber=0; while (!feof(INPUT)) { char temphold; temphold= fgetc(INPUT); if (temphold == ' ' ) {wordnumber++;} i++; wordlist[wordnumber]+temphold=wordlist[wordnumber]; } fclose(INPUT); cout << wordlist<< "asd"; INPUT = fopen("text.in","r"); stringSize=0; amountOfWords=0; //checks how many lines and texts while (!feof(INPUT)) { if (fgetc(INPUT) == '\n' ) {amountOfWords++;} stringSize++; } scanf(" ");return 0; }