Hi all,
just wonder is there any way to have a constructor parameters that having another classes with parameter?
for example like
class Player
{
public:
Player(char = 'X', char = 'O');
};
class Board
{
public:
Board(int, Player);
};
Hi all,
just wonder is there any way to have a constructor parameters that having another classes with parameter?
for example like
class Player
{
public:
Player(char = 'X', char = 'O');
};
class Board
{
public:
Board(int, Player);
};
nvm, solved.
thank a lot :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.