• 0

error in C++


Question

i'm work on visual studio 2003

and i have got this error

please help me to solve it

c:\Documents and Settings\A.Burhan\My Documents\Visual Studio Projects\uni4\Std.cpp(12): error C2664: 'Cou::Cou(const Cou &)' : cannot convert parameter 1 from 'std::string' to 'const Cou &'

Cou is a class

and the error on constructor

Std::Std(std::string Cn,std::string Pn,std::string Sn,int num)

:CC(Cn), PP(Pn)

{

name = Sn;

number= num;

}

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.