• disable某种警告


    消除警告:

      #pragma warning(disable:4786)

      ZC: 需要消除哪种警告,就在上面填写相应的编号

    1、

    在 VC6中使用vector<string>时,报类似下面的警告:

    F:??????Z.CPP(22) : see reference to class template instantiation 'std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >
    ,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >' being compiled
    C:Program Files (x86)Microsoft Visual StudioVC98INCLUDEvector(61) : warning C4786: '??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QA
    E@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0ABV?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@1@@Z' : identifier was truncated to '255' characters in the browser information

    找到 警告为 warning C4786,于是就使用 “#pragma warning(disable:4786)”

    查到该警告的解释:

    “该警告主要意思是调试信息的字符超过了255个,将会被截断不显示,并不影响程序运行。”

    2、

    3、

  • 相关阅读:
    染色法判定二分图
    Kruskal算法求最小生成树
    Prim算法求最小生成树
    Floyd算法求多源最短路
    spfa判断负环
    java 线程的使用
    java IO基础
    数据库 EXISTS与NOT EXISTS
    数据库 何为相关查询和不相关查询?
    数据库的基础知识
  • 原文地址:https://www.cnblogs.com/cppskill/p/5484825.html
Copyright © 2020-2023  润新知