在变量声明的时候:
int  Find(const T&t) const;编译结果出错为
Visual sutdio2005\vc\atlmfc\include\afxcmn.h(1712) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
我新手,问题可能有点呆,见谅!请高手指点迷津啊?怎么解决呢?

解决方案 »

  1.   

    http://topic.csdn.net/u/20090104/17/363ee00c-492c-4c3e-afde-cfd6509d4e4a.html
      

  2.   

    CString::Find
    int Find( TCHAR ch ) const;
    int Find( LPCTSTR lpszSub ) const;
    int Find( TCHAR ch, int nStart ) const;
    int Find( LPCTSTR lpszSub, int nStart ) const;
    返回值 不匹配的话返回 -1; 索引以0 开始
            nStar 代表以索引值nStart 的字符开始搜索 ,
    即为包含以索引nStart字符后的字符串
    例子
    CString s( "abcdef" );
    ASSERT( s.Find( 'c' ) == 2 );
    ASSERT( s.Find( "de" ) == 3 );
    Cstring str(“The stars are aligned”);
    Ing n = str.Find('e',5);
    ASSERT(n == 12)