经常犯的错

      1.const声明的时候没有初始化
      2.引用声明的时候没有初始化
      3.指针赋常值
      4. 函数指针 、函数返回指针、const指针、指向const的指针、指向const的const指针
            void (*fun)()、void *fun()、const int *a、int *const a、const int* const aa

     

   5.c++ console 项目中,应用MFC的库,经常会出现:如引用<afxinet.h>  错误: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]

   解决方案:项目属性页---配置属性--常规---项目默认属性---MFC的使用---把使用标准的windows库改成在共享的DLL

中使用MFC

6.FTP简单的构建

原文地址:https://www.cnblogs.com/xianqingzh/p/1528080.html