Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. data.h
- ...
- class data {
- public:
- void compute();
- 2. data.cpp
- ...
- void compute() {
- float index;
- index = ((a / 100) - (b + c) / 200) * (d + e);
- }
- 3. index.h
- ...
- class index {
- public:
- float index;
- void setIndex();
- 3. index.cpp
- #include data.cpp
- #include index.h
- ...
- void index::setIndex() {
- compute();
- }
Add Comment
Please, Sign In to add comment