我认为这是一个重载运算符错误,但我不明白为什么它假设我正在尝试使用重载运算符。
string Customer::getCustomerName()
{
return customerName;
}
string Customer::getCustomerLicense()
{
return customerLicense;
}
Date* Customer::getCustomerBirthday()
{
return customerBirthday;
}
void Customer::printCustomerObject()
{
cout << getCustomerName(); // No operator "<<" matches these operands
} ERROR CODE: E0349
我认为您没有包含标准字符串标题。
#include <string>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句