#include #include #include using namespace std; int n; int hosszuak(string * s){ int k=0; for(int i=0;i1) k++; } return k; } bool hosszu(string s){ return s.length()>1; } int main() { string nn; ifstream myfile ("Input.txt"); int i=0; string* sz; if (myfile.is_open()) { getline (myfile,nn); n = atoi(nn.c_str()); sz = new string[n+1]; while ( myfile.good() ) { getline (myfile,sz[i]); i++; } sz[n]="gfdg"; myfile.close(); } ofstream ccout; ccout.open ("Output.txt"); for(int j=0;j<11;j++){ switch(j){ case 0: ccout<<"----|-\\-----"; for(int i=0;i