Answer to Question #64067 in C++ for NateE

Question #64067
How to organize your code into header files (Circle.h, Square.h) and implementation files (Circle.cpp. Square.cpp. main.cpp).
1
Expert's answer
2016-12-13T11:06:10-0500
1. Add libraries and streams in Circle.h or Square.h
2. Add: ‘include “Circle.h”’ and ‘include “Square.h”’ in Circle.cpp. Square.cpp. main.cpp
3. Describe class Circle in Circle.h
4. Describe class Square in Square.h
5. Write functions for class Circle in Circle.cpp
6. Write functions for class Square in Square.cpp
7. Use functions in main.cpp

External sources:
https://www.cplusplus.com/forum/beginner/26032/
https://stackoverflow.com/questions/7032709/linking-two- cpp-and- a-h-files

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS