#include <iostream.h>
#include <stdio.h>
#include <string.h>

int najw(int *t)
{
     if(t[0]>t[1])   
     {
          if(t[0]>t[2])
          return t[0];
          else return t[2];
     }
     else if(t[1]>t[2]) return t[1];
     else return t[2];
     
     
}
float najw(float *c)
{
     if(c[0]>c[1])   
     {
          if(c[0]>c[2])
          return c[0];
          else return c[2];
     }
     else if(c[1]>c[2]) return c[1];
     else return c[2];
}

char* najw(char t1[3], char t2[3], char t3[3])
{
     if(strcmp(t1,t2)==1)
     {
         if(strcmp(t1,t3)==1) return t1;
         else return t3;                
     }
     else if(strcmp(t1,t3)==1) return t1;
     else return t3;
}
/*void wys(char *t="To jest napis", int ile=0)
{
     cout << endl;
     while(ile--) cout << t << endl;    
}*/

int main()
{
    int tab[3]={3,11,9};
    float tab2[3]={2.4,3.6,9.6};
    //char t1[]="a", t2[]="b", t3=[]"c";
    cout << najw(tab) << endl;
    cout << najw(tab2) << endl;
    cout << najw("a","b","c");
    
    /*char t[100];
    int c;
    gets(t);
    cin >> c;
    wys(t,c);
       
    /* wejsciowka 23.11
    char t[100],*t2,*wsk,*wsk2;
    gets(t);
    t2 = new char(strlen(t+1));
    wsk=&t[0];
    wsk2=&t2[0];
    for(int i=0;i<strlen(t)+1;i++)
    {
            *wsk2++=*wsk++;
    }
    cout << t2;
    delete []t2;*/
    system("PAUSE");
    return 0;
}
