What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C++ Bidimensional Array Help! :P

C++ Bidimensional Array Help! :P
Author: Message:
leito
Senior Member
****

Avatar
Chameleon by KeyStorm

Posts: 720
Reputation: 5
38 / Male / –
Joined: Apr 2003
O.P. Undecided  C++ Bidimensional Array Help! :P
Hey guys! I'm learning C++ and everything is... was ok. hahaha. I wanted to do a class SquareMatrix and in the constructor get a N integer to create my matrix NxN.

In java that would be:

class SquareMatrix{

     private int matrix[][];
 
     SquareMatrix(int n){
          matrix = new int[n][n];
     }
}

But in C++ I can't do this, and can't find a way to do it. Help neede plz! Thank you in advance!
[Image: leonelgalan.png]
07-21-2005 04:26 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
C++ Bidimensional Array Help! :P - by leito on 07-21-2005 at 04:26 AM
RE: C++ Bidimensional Array Help! :P - by RaceProUK on 07-21-2005 at 04:49 PM
RE: C++ Bidimensional Array Help! :P - by leito on 07-22-2005 at 01:28 AM
RE: C++ Bidimensional Array Help! :P - by RaceProUK on 07-22-2005 at 08:37 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On