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
Printable View
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?
#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.
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?