Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Conversion from "" to non-sclar trpe " " requested.

Reply
Thread Tools

Conversion from "" to non-sclar trpe " " requested.

 
 
AddisLig AddisLig is offline
Junior Member
Join Date: Nov 2008
Posts: 1
 
      11-16-2008
Hi All,

I am new to C++ and have this poject to finish by end of next week. I am getting error for the following code...

=======
class Property{
private:
//private method that uses the static state of class
int newID();
protected:
long price;
string address;
string type;
static int propID; //Static Index number for searching purpose

public:
Property(string anAddress, long aPrice, string hType);
Property(string anAddress, long aPrice);//needed to display + overload later
Property(string anAddress);
virtual ~Property(); //Destructur for the Property Class
Property operator + (Property); // Operator Overload
bool operator == (Property); //Operator overload
virtual void display();
virtual void changePrice(long);

};

int Property:ropID=323500; //Initialise the static ID number
//........

int main (){
//.....
Property prop1 = new Property("Address in Las Vagas");
Property* prop1Ptr = &prop1;
prop1Ptr->display();
//....
}

I get above error in line

Property prop1 = new Property("Address in Las Vagas");
Basically I have hit a brick wall.

Thanks in advance for your help.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PSD to XHTML Conversion Services and PSD to HTML CSS ConversionServices, PSD to Joomla, Drupal, Wordpress Conversion xhtml champs Python 0 06-21-2011 11:59 AM
PSD to XHTML Conversion Services and PSD to HTML CSS ConversionServices, PSD to Joomla, Drupal, Wordpress Conversion PSD to XHTML Conversion Services and PSD to HTML CSS Conversion Services, PSD to Joomla, Drupal, Wor VHDL 0 04-25-2011 06:43 AM
conversion operator and conversion ctor subramanian100in@yahoo.com, India C++ 2 09-15-2009 12:46 PM
Date conversion problem with OE importing saroxonline76@vodafone.it Firefox 0 07-12-2005 07:38 PM
Framework 1.0 to 1.1 conversion Luc Bisson ASP .Net 2 11-19-2003 02:40 AM



Advertisments