#include <iostream.h>
char * usun(char* tekst, char a,int rozmiar)
{
char temp[100];
     for(int i=0;i<rozmiar;i++)
     {
             if(tekst[i] != a)
             {
              static int k;
              temp[k]=tekst[i];
              k++;
             }
             else continue;
     }
     return temp;
}
int main(int argc, char * argv[])
{
    char tekst[]="Przykladowy tekst";
    int c=sizeof(tekst);
    cout<<usun(tekst,'P',c);
    cout<<endl;
    system("pause");
    return 0;
}
