This is not a CLR C ++ program. In proper C ++, classes cannot be public (or private). Do you want to:
namespace System
{
class Console
{
public:
static void WriteLine(char str[])
{
std::cout<<str;
}
};
}
Also in C ++, character literals are const, so your function should be:
static void WriteLine( const char * str)
if you want to call it with one parameter.
anon
source
share