This is an incorrect syntax in C++.

A reference variable in C++ must be initialized at the time of declaration and cannot be assigned a NULL value. Therefore, the correct syntax for declaring a reference variable and initializing it to NULL would be:

FontParser::FontDescriptor* descResPtr = NULL;

In this syntax, a pointer variable is declared and initialized to NULL, which can be later used to assign the address of a FontDescriptor object.

FontParserFontDescriptor& descResPtr = NULL;

原文地址: https://www.cveoy.top/t/topic/gfqI 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录