#include <iostream.>
#include <string.h>
using namespace std;
void main()
{
char* polje[10];
char niz[21];
for (int i=0; i<3; ++i)
{
cout << "Vpisi niz (brez presledkov, max 20 znakov): ";
cin.getline(niz,500);
polje[i] = new char[strlen(niz)+1];
strcpy(polje[i], niz);
} // for
for (int i=0; i<3; ++i){ //izpis in sprostitev pomnilnika
cout << polje[i] << endl;
delete [] polje[i];
} // for
system("pause");
}