MyPractice ^shan=gcnew MyPractice (L"Shahnawaz Talpur");
This executes well but I want to first declare variable ^shan and the ass开发者_如何学JAVAign the value how it could be
Use nullptr
:
// Declare and assign null
MyPractice^ shan = nullptr;
// Later when you need :
shan = gcnew MyPractice(L"Shahnawaz Talpur");
精彩评论