Guest User

Untitled

a guest
Oct 18th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. 1. data.h
  2. ...
  3. class data {
  4. public:
  5. void compute();
  6.  
  7. 2. data.cpp
  8. ...
  9. void compute() {
  10. float index;
  11. index = ((a / 100) - (b + c) / 200) * (d + e);
  12. }
  13.  
  14. 3. index.h
  15. ...
  16. class index {
  17. public:
  18. float index;
  19. void setIndex();
  20.  
  21. 3. index.cpp
  22. #include data.cpp
  23. #include index.h
  24. ...
  25. void index::setIndex() {
  26. compute();
  27. }
Add Comment
Please, Sign In to add comment