#include <iostream.h>
/*
  Name: 
  Copyright: 
  Author: 
  Date: 16-11-05 22:37
  Description: 
*/

char *producent(void);
main()
{
char *w1, *w2, *w3, *w4;
w1=producent();
w2=producent();
w3=producent();
w4=producent();
*w1='H';
*w2='E';
*w3='R';
cout<<"w1: "<<*w1<<" w2: "<<*w2<<" w3: "<<*w3<<" w4: "<<*w4<<endl;
cout<<"w1: "<<(long int)w1<<" w2: "<<(long int)w2<<" w3: "<<(long int)w3<<" w4: "<<(long int)w4<<endl;
delete w1;
delete w2;
delete w3;
w1 = NULL;
system("pause");
}
char * producent(void)
{
     char *w;
     cout<<"Wlasnie produkuje obiekt! \n";
     w=new char;
     return w;
 }
      
