class matrix
{
int **p;
int d1,d2;
public:
matrix(int x,int y); //constructor allocates block of specified size
/*I am not specifying contructor code*/
void get_element(int i,int j,int value)
{ p[i][j]=value; }
int put_element(int i,int j)
{ return p[i][j]; } // [U][B]return statement encountering access violation during runtime , Help!!![/B][/U]
};
amitahlawat20
0
Light Poster
Recommended Answers
Jump to PostPlease use code tags.
class matrix { int **p; int d1,d2; public: matrix(int x,int y); //constructor allocates block of specified size /*I am not specifying contructor code*/ void get_element(int i,int j,int value) { p[i][j]=value; } int put_element(int i,int j) { return p[i][j]; } // return statement encountering …
All 3 Replies
VernonDozier
2,218
Posting Expert
Featured Poster
bugmenot
25
Posting Whiz in Training
mitrmkar
1,056
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.