Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Other
Title: db12804-(1) Download
 Description: 1. Define a class named SalesItem which includes the following members: (a) Data member: price (b) Member Functions: - GetPrice(): to get the price - SetPrice(): to set the price The function types and parameter lists for these two functions should be determined appropriately. (c) Please place the definitions of the class in a header file SalesItem.h, and use a separate file SalesItem.cpp to accommodate the implementations of the member functions. 2. Create two objects book1 and book2 of the SalesItem class, with different initial values. Set the prices of these objects to 100 and 200, respectively, and display them on the screen. This task should be implemented in the main function, which is placed in a separate file main.cpp.
 Downloaders recently: [More information of uploader Brian Pun]
 To Search:
File list (Check if you may need any files):
 

db12804\main.cpp
.......\SalesItem.cpp
.......\SalesItem.h
db12804
    

CodeBus www.codebus.net