-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++_2 #7
base: master
Are you sure you want to change the base?
C++_2 #7
Conversation
* First Cut made * Insert done. Refractoring to be done * Remove implemented * Access code done. * Testing skeleton code added * Code restart * LFU Testing done! * Todos Removed * Refractoring * Changes and Cpp Unit Tests Added. * Source files added * Cmake files removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Create a .h class to define the necessary classes.
For the same header file, create a .cc file and implement all the necessary member funtions in that. - _main.cpp is not required. Use unit testing to test the functionality of the program. And refer to testcases.md for the tests for which the program should pass.
- Follow a coding convention through out. Name a function/class/struct in camel cases. variable names separated by '_'.
- Add required comments.
Good example to get started with test suite.
CPPUnit testing: http://cppunit.sourceforge.net/doc/cvs/money_example.html
Good first attempt. Didnt check the functionality. Once the changes are made, second review will be done. Thanks,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the file names. Give them appropriate names. prototype.h and member functions are too generic. Consider naming LFU.h and LFU.cc. While compile link the .cc with the _main.cc with LFU.h included in _main.cc file and _test.cc files.
Any other changes required? @mohitreddy1996 |
Implementation of LFU Cache, using C++