Basically, i am quite new to c++ and i want to know why when i create an object it wont let me initialize it in the normal way. E.g 'int example = 10;' but when i try to initialize this problem like in the code below a problem comes up about some conversion:'no suitable constructor exists to convert from "const char [7]" to "binary"'.
#include <iostream>
using namespace std;
class binary
{
public:
string value;
};
int main()
{
binary first = "101010";
return 0;
}