| ÍøÕ¾Ê×Ò³ | Òµ½çÐÂÎÅ | С×é | Íþ¿Í | È˲Š| ÏÂÔØƵµÀ | ²©¿Í | ´úÂëÌù | ÔÚÏß±à³Ì | ±à³ÌÂÛ̳
»¶Ó­¼ÓÈëÎÒÃÇ£¬Ò»Í¬Çд輼Êõ
Óû§Ãû£º   
 
ÃÜ¡¡Â룺  
¹²ÓÐ 518 È˹Ø×¢¹ý±¾Ìû
±êÌ⣺Ϊʲô˵ûÓÐÅäÌ׵IJÎÊý£¿£¿
Ö»¿´Â¥Ö÷ ¼ÓÈëÊÕ²Ø
wwiilla
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º51
ר¼Ò·Ö£º0
×¢¡¡²á£º2005-9-5
ÊÕ²Ø
 ÎÊÌâµãÊý£º0 »Ø¸´´ÎÊý£º1 
Ϊʲô˵ûÓÐÅäÌ׵IJÎÊý£¿£¿

#ifndef _BOOK_H
#define _BOOK_H
#include<iostream.h>

class Book
{
public:
char isbn[20];
char title[40];
char author[20];
char publishcompany[40];
float price;
public:
Book(char *Isbn,char *Title,char *Author,char *Publishcompany,float Price);
~Book();
void setisbn(char *Isbn);
void settitle(char *Title);
void setauthor(char *Author);
void setpublishcompany(char *Publishcompany);
void setprice(float Price);
char *getisbn(){ return isbn;}
char *gettitle(){ return title;}
char *getauthor(){ return author;}
char *getcompany(){ return publishcompany;}
};
#endif
#include"Book.h"
#include<string.h>
Book::Book(char *Isbn,char *Title,char *Author,char *Publishcompany,float Price)
{
strcpy(isbn,Isbn);
strcpy(title,Title);
strcpy(author,Author);
strcpy(publishcompany,Publishcompany);
price = Price;
}
void Book::setisbn(char *Isbn)
{
strcpy(isbn,Isbn);
}
void Book::settitle(char *Title)
{
strcpy(title,Title);
}
void Book::setauthor(char *Author)
{
strcpy(author,Author);
}
void Book::setpublishcompany(char *Publishcompany)
{
strcpy(publishcompany,Publishcompany);
}
void Book::setprice(float Price)
{
price = Price;
}
void main()
{
Book a(7-81012-578-8,c,weiwei,wwiilla,25.00);
}
Ϊʲô³ö´íÁË£¿£¿

ËÑË÷¸ü¶àÏà¹ØÖ÷ÌâµÄÌû×Ó: ²ÎÊý¡¡
2006-01-05 18:42
̤ħÀÇ
Rank: 6Rank: 6
µÈ¡¡¼¶£º¹ó±ö
Íþ¡¡Íû£º24
Ìû¡¡×Ó£º1322
ר¼Ò·Ö£º33
×¢¡¡²á£º2005-9-22
ÊÕ²Ø
µÃ·Ö:0 
Book a(7-81012-578-8,c,weiwei,wwiilla,25.00);
ÈçÏÂ:
Book a("7-81012-578-8","c","weiwei","wwiilla",25.00);

£½¡Á£¦D o I p R e E n C g T l X£¦¡Á£½
2006-01-05 19:32
¿ìËٻظ´£ºÎªÊ²Ã´ËµÃ»ÓÐÅäÌ׵IJÎÊý£¿£¿
Êý¾Ý¼ÓÔØÖÐ...
 
¡¡¡¡¡¡



¹ØÓÚÎÒÃÇ | ¹ã¸æºÏ×÷ | ±à³ÌÖйú | Çå³ýCookies | TOP | ÊÖ»ú°æ

±à³ÌÖйú °æȨËùÓУ¬²¢±£ÁôËùÓÐȨÀû¡£
Powered by Discuz, Processed in 0.030683 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved