class를 동적할당 할 때 아래 1번과 2번의 차이가 뭔가요?
class test{...};
1번) test *ptr = new test(); 2번) test *ptr = new test;
test의 타입에 따라 조금 다릅니다.
자세한 내용은 http://stackoverflow.com/questions/620137/do-the-parentheses-after-the-type-name-make-a-difference-with-new 참고하세요.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
test의 타입에 따라 조금 다릅니다. 자세한
test의 타입에 따라 조금 다릅니다.
자세한 내용은 http://stackoverflow.com/questions/620137/do-the-parentheses-after-the-type-name-make-a-difference-with-new 참고하세요.
댓글 달기