test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
45
.config/Code/User/History/55b0855c/Cc0R.cpp
Normal file
45
.config/Code/User/History/55b0855c/Cc0R.cpp
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
Rafay Ahmad
|
||||
23I-2526
|
||||
*/
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Library{
|
||||
char* bookTtile;
|
||||
char* author;
|
||||
int bookID;
|
||||
int quantity;
|
||||
float price;
|
||||
static int totalBooks;
|
||||
|
||||
public:
|
||||
|
||||
// getter
|
||||
char* getBookTitle(){
|
||||
return bookTtile;
|
||||
}
|
||||
char* getAuthor(){
|
||||
return author;
|
||||
}
|
||||
int getBookID(){
|
||||
return bookID;
|
||||
}
|
||||
int getQuantity(){
|
||||
return quantity;
|
||||
}
|
||||
float getPrice(){
|
||||
return price;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
int main(){
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue