Question
C++ using calsses: you can find the main() function of some program. we need to write the real main file and the needed classes (including
C++ using calsses:
you can find the main() function of some program. we need to write the real main file and the needed classes (including implementation) so that the code would work. 1. The code should be working correctly. 2. All related functions should be implemented. If you implement operator == don't forget to add operator != 3. Define const functions when possible. 4. Don't add functions that you was not asked to implement. 5. You can add #includes that are needed. 2. Design & Style 1. Don't do something twice! No code duplication. 2. The code should be easy to read. 3. Use all needed #define etc. 4. Use inline, explicit etc when possible.
---------------------------------------------------------------
Explanation about class Matrix: 1. The initialization take O(1) time (no matter what the matrix size). 2. The default value is specified in the construction (if not specified the default is 0). 3. matrix[i][j] should return a real value (if was set) or default (if was not set before). 4. Access operations to a matrix element should take constant time. Thus initialization can't be done during the first access or anything like this. (You have to work with this matrix in the same way we worked with an uninitialized array.)
--------------------------------------------------------------
send me all the files (and instructions if needed) + the output of the main()
-----------------------------------------------------------------
// ADD REQUIRED INCLUDES. int main () { const Matrix
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started