I want to create a matrix solver which can contains many different different algorithm. |
Ok. I don’t know math, so I could have a look at the code to check the syntax, but I can’t be of any help for optimization.
- - -
But, since I’ve been haunting this forum for nearly three years, let me come up with some advice:
1) Ask one question (or at least a main question) per thread.
Do not ask about C++ code and UML translation in the same post: people don’t understand what you want.
2) State clearly this program is something you’re doing on your own initiative.
In the beginner's forum it is forbidden to ask about assignments — and actually, if you read the other threads, you can see how many students come here hoping to have their homework done by someone else :-/
3) Add a main() to you code and put it all together into one single block of code, wrapped with [code ][ /code] tags.
If it is only one block and it has a main(), i.e. it is complete, it can be compiled and executed on
http://cpp.sh/ with a single click (a gear icon will appear on its right).
That’s probably the most important step to get a good answer ;-)
4) In general, answer people.
Ok, you already do this, but have you seen lastchance’s code above? It sounds rude not to reply at all.
- - -
In general, people are annoyed by double posting on the same topic, but now it seems this thread has been perceived as pointless. But I think you have a good question to ask that could potentially get many good answers.
So, perhaps you could try to:
- abandon this thread
- wait one day
- open another thread, putting a good question and providing your code the right way since the very beginning.
For example (it is merely an example!), you thread heading could be: “A matrix solver with many different algorithms”
The text could be:
«This is my first attempt to implement… <blah blah blah>. How can I improve my code?»
Below your code followed, if there’s room, by an output example.
Days later you can ask about the UML diagram, but perhaps a UML forum would be a better place.
Anyway sometimes it happens some thread doesn’t arouse interest. Nobody knows exactly why.
- - -
there are a couple of mistake in UML diagram |
…A couple… Sure… :-)