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
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?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
#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. ; )
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?