I am trying to create a class as shown below(this is just part of my code), but when i create the empty constructor, intellisense on visual studio gives me an error saying "IntelliSense: more than one operator "=" matches these operands" for ssn=0. can someone explain why that is, and how it can be fixed?
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
class SocialSecurityNumber
{
private:
string ssn;
public:
SocialSecurityNumber()
{
ssn = 0;
}
thanks

New Topic/Question
Reply



MultiQuote




|