C++中#pragma后面加个名字在文件中有什么作用



 #pragma CommonUrlImageView

class CommonUrlImageView;


class CommonUrlImageView: public CAImageView
{
   ....
}

还有class CommonUrlImageView 写两遍有何用意?

c++11 C++

愉悦的天才 9 years, 3 months ago

 #pragma

应该是建立文本的快速索引

前面的class一般是前置声明


如不对请指正

Agoni answered 9 years, 3 months ago

Your Answer