C++ Programming Error/Warning Analysis (2) extra qualification

C++ Programming Error/Warning Analysis (2) extra qualification

  • Author:柳大·Poechant(钟超)
  • Email:zhongchao.ustc#gmail.com (# -> @)
  • Blog:Blog.CSDN.net/Poechant
  • Date:May 9th, 2012

Explanation

实例:

… 
class Hello {
    …
    void Hello::hello();
    …
};
…

提示(g++):

Hello.h:17: error: extra qualification 'Hello::' on member 'hello'

这通常是拷贝代码引起的,应改为:

… 
class Hello {
    …
    void hello();
    …
};
…

Reference

  1. http://hi.baidu.com/zjugator/blog/item/77bb6cec02bee22163d09f7d.html

-

柳大·Poechant:Blog.CSDN.net/Poechant

-

你可能感兴趣的:(C++,Blog,Class,email)