Hey ; )
I must use the logic of object-oriented programming.
How can i define a [3x3] matrix with use Class?
Can you give me advices or some examples? , thank you ; )
I am sorry, my english is not good so much. : p
This is a discussion on C++ Define Matrix within the C++ Programming forums, part of the General Programming Boards category; Hey ; ) I must use the logic of object-oriented programming. How can i define a [3x3] matrix with use ...
Hey ; )
I must use the logic of object-oriented programming.
How can i define a [3x3] matrix with use Class?
Can you give me advices or some examples? , thank you ; )
I am sorry, my english is not good so much. : p
What have you tried?
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
#include<iostream>
#include<conio.h>
using namespace std;
class matrix
{
public:
int a[3][3];
Can it be a matrix define with class?
I want to addition and multiplication calculation with use class ? I will use for it overloading technique. ; )
Use code tags when posting code.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
Code:#include<iostream> #include<conio.h> using namespace std; class matrix { public: int a[3][3];
First, you do not want to use using's in a header. Second, what is your problem with the implementation you posted?