search

Home  >  Q&A  >  body text

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

#pragma CommonUrlImageView

class CommonUrlImageView;


class CommonUrlImageView: public CAImageView
{
   ....
}

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

伊谢尔伦伊谢尔伦2803 days ago395

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 13:01:13

    #pragma

    Should be a quick index of text

    The previous class is usually a forward declaration


    Please correct me if I’m wrong

    reply
    0
  • Cancelreply