EricJohnson

manager

Jun 5th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include "managerheader.hpp"
  3. using namespace std;
  4.  
  5. void orders_t::setquantity(int index,int value) {
  6. quantity[index]=value;}
  7.  
  8.  
  9. int orders_t::getquantity(int index){
  10. return quantity[index];}
  11.  
  12.  
  13. void orders_t::setitemnum(int index,int value){
  14. itemnum[index]=value;}
  15.  
  16. int orders_t::getitemnum(int index){
  17. return itemnum[index];}
  18.  
  19.  
  20. void orders_t::setprice(int index,float value){
  21. price[index]=value;}
  22.  
  23. float orders_t::getprice(int index){
  24. return price[index];}
  25.  
  26.  
  27. void orders_t::setname(std::string newname){
  28. name=newname; }
  29.  
  30. std::string orders_t::getname(){
  31. return name;}
  32.  
  33.  
  34. void orders_t::setordernum(int num){
  35. odernum=num;}
  36.  
  37. int orders_t::getordernum(){
  38. return ordernum;}
  39.  
  40.  
  41. void orders_t::setbackward(orders_t* thing1){
  42. forward=thing1;}
  43.  
  44. orders_t* orders_t::getbackward(){
  45. return forward;}
  46.  
  47.  
  48. void orders_t::setforward(orders_t* thing2){
  49. backward=thing2;}
  50.  
  51. orders_t* orders_t::getforward(){
  52. return backward;}
Advertisement
Add Comment
Please, Sign In to add comment