Thread: String argument
View Single Post
Old Nov 23rd, 2005, 11:19 AM   #1
-=PARADOX=-
Programmer
 
-=PARADOX=-'s Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 53
Rep Power: 3 -=PARADOX=- is on a distinguished road
String argument

I have this class 'CMatrix':

class CMatrix
{
        CVector *matrix;
        unsigned lin, col;
        string m_sNome;
public:
        CMatrix( string&, unsigned, unsigned );
        ~CMatrix();

};

And I want to pass a string to the constructor... but my compiler says "string cannot start a parameter declaration"...
What's wrong?

Thanks in advance
-=PARADOX=- is offline   Reply With Quote