Barnut Alexandru-Ionel
using namespace std;
#include<iostream>
#include<ctype.h>
#include<string.h>
#define MAX 101
.char s[MAX],voc[11]="aeiouAEIOU";
/*
int main ()y2
{
int i,n;
cin.get(s,100);n=strlen(s);
for(i=0;i<n;i++)
if(strchr(voc,s[i]))
if(isupper(s[i]))
s[i]=s[i]+'a'-'A';
else
s[i]=s[i]-'a'+'A';
cout<<s;
}
*/
/*char t[101],a[101][20],*p,s[101]=" ";
int main()
{
int n=0,i;
cin.get(t,100);
p=strtok(t," ");
while(p)
{
strcpy(a[++n],p);
p=strtok(NULL," ");float
}
for(i=1;i<=n;i++)
if(strlen(a[i])==3)
strcat(s,"* ");
else
{
strcat(s,a[i]);
strcat(s," ");
}
cout<<s;
}*/
/*
using namespace std;
#include<iostream>
#include<ctype.h>
#include<string.h>
#define MAX 101
.char s[MAX],voc[11]=main"aeiouAEIOU";
int main ()
{
int i,n;
cin.get(s,100);n=strlen(s);
for(i=0;i<n;i++)
if(strchr(voc,s[i]))
if(isupper(s[i]))
s[i]=s[i]+'a'-'A';
else
s[i]=s[i]-'a'+'A';
cout<<s;
iostream
}
*/
/*char t[101],a[101][20],*p,s[101]=" ";
int main()
{
int n=0,i;
cin.get(t,100);
p=strtok(t," ");
while(p)
{
strcpy(a[++n],p);
p=strtok(NULL," ");
}
for(i=1;i<=n;i++)
if(strlen(a[i])==3)
strcat(s,"* ");
else
{
strcat(s,a[i]);
strcat(s," ");
}
cout<<s;
}
*/
//2 date tip int si fct: constructor fara param, construct cu 2 pct, afis virtuala, virtuala
//,distanta cu un paramm de tip int care returneaza o val float
//sa se deriveze clasa linie cu 2 date de tip int si fct: cit, afis, lungimea cu 2 param de tip punct
//clasa linie(clasa de baza) sa se deriveze clasa triunghi cu 2 date de tip int, si fct: cit, afis, arie si perimetru
//considerand cls triunghi cls de baza, se deriveze cls piramida cu 2 date de tip int si fct cit afis aria_lat, aria_tot, vol
//sa se creeze obiecte si sa se utilizeze fct respect.
//clasa virtuala: se declara o singura data(baza bazelor)
class punct
{
int a,b;
public:
{
punct();
punct(int,int);
virtual void cit();
virtual void afis();
float distanta(punct);
}
};
class linie: public punct
{
int x1,y1;
public:
{
void cit();
void afis();
float lungime();
float lungimea(punct,punct);
}
}
class triunghi: public linie
{
int x2,y2;
public:
{
void cit();
void afis();
float aria();
float perimetru();
}
}
class piramida
{
int h;
public:
{
void cit();
void afis();
float al();
float at();
}
}
int main()
{
}