어딘가에 "^"연산자가 Managed C++ 코드의 포인터 연산자로 사용 된 것을 기억합니다. 따라서 "^"연산자는 "*"연산자와 동등해야합니다 ?? 나는 닷넷을 이해하기 시작하고 몇 가지 예제 프로그램을 코딩 할 때문자열^C++ .Net에서
, 나의 이해가 맞아 가정하면,이 같은 일부 코드 건너 온 :
String ^username; //my understanding is you are creating a pointer to string obj
.
. // there is no malloc or new that allocates memory to username pointer
.
username = "XYZ"; // shouldn't you be doing a malloc first??? isn't it null pointer
을 내가 문제가이 문제를 이해하는 데.