c++
class Test
{
public:
int value = 0;
};
int main()
{
Test test
{
test.value = 10
};
return 0;
}
c#
public class Test
{
public int value = 0;
};
static void main()
{
Test test = new Test
{
value = 10
};
}
c++
class Test
{
public:
int value = 0;
};
int main()
{
Test test
{
test.value = 10
};
return 0;
}
c#
public class Test
{
public int value = 0;
};
static void main()
{
Test test = new Test
{
value = 10
};
}
c++됨
new test() - dc App