zoukankan      html  css  js  c++  java
  • C++基本错误:

    C++常见错误:
    1. C2146错误通常原因是变量定义前的类型说明符找不到,可能因为拼写错误或未加入需要的头文件引用导致
    2. Error 1 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\documents and settings\aldous.liu\桌面\myservice1\myservice1\firstservice.cpp 170 FirstService
     属*->C/C++->Precompiled Headers->Create/Use Precompiled Headers->Not Using Precompiled Headers
    3. Error 1 error C2440: 'initializing' : cannot convert from 'const char [9]' to 'LPWSTR' c:\documents and settings\aldous.liu\桌面\ntservice2\ntservice2\ntservice2.cpp 13 NTService2
     属*->General->Use Multi-Byte Character Set
    4. Error 1 error C2065: 'ServiceMain' : undeclared identifier c:\documents and settings\aldous.liu\桌面\ntservice2\ntservice2\ntservice2.cpp 13 NTService2
     将方法、变量的定义移到最先使用此方法、变量之前
  • 相关阅读:
    软件工程作业03
    PSP0级要求02
    PSP0级要求日志
    软件工程个人作业02
    第三周学习进度
    第二周学习进度
    软件工程个人作业01
    Web网页登录设计
    第一周学习进度
    第三周学习进度条+PSP0过程文档
  • 原文地址:https://www.cnblogs.com/andy65007/p/1631058.html
Copyright © 2011-2022 走看看