Class Composition ile ilgili

#include
#include
class car
{
private:
char color[15];
char model[20];
int year;
plate p1;
owner o1;
public:
car(char* c,char* m,int y,char* cod,int n,char* nam,char* s,char* cit,int ap)
:p1(cod,n),o1(nam,s,cit,ap){
strcpy(color,c);
strcpy(model,m);
year=y;
}
void print()
{
cout<<"CAR"< belgesi-746

Belgeci , 2280 belge yazmış

Cevap Gönderin