请教高手,qt中输出语句应该怎么呢?
报错信息: 错误:C2039: “cout”: 不是“std”的成员
错误:C2065: “cout”: 未声明的标识符
部分代码:void CommandLineInterfaceManager::startTonemap()
{
if (!saveLdrFilename.isEmpty())
{
VERBOSEPRINT("Tonemapping requested, saving to file %1.",saveLdrFilename);
//now check if user wants to resize (create thread with either -2 or true original size as first argument in ctor, see options.cpp).
//TODO
tmopts->origxsize = HDR->getWidth();
std::cout << "XSIZE: " << tmopts->xsize <<std::endl;
if (tmopts->xsize == -2)
tmopts->xsize = HDR->getWidth();
TMOThread *thread = TMOFactory::getTMOThread(tmopts->tmoperator, HDR, tmopts);
connect(thread, SIGNAL(imageComputed(QImage*)), this, SLOT(tonemapTerminated(QImage*)));
thread->startTonemapping();
}
怎么改呢?万分感谢!