更好地了解Visual Studio C ++错误消息 [英] Understanding Visual Studio C++ Error messages better
问题描述
你好,
任何人都可以通过在线资源或书来理解C ++中的错误消息。我正在使用Visual Studio 2017.通常在编写代码时会遇到错误消息,例如"C ++表达式必须具有类类型"。或类似的。
是否有任何指南解释了大多数Visual Studio错误的含义?究竟是什么意思,如标识符,表达式,限定符,参数等等。标准C ++语言不描述这些术语。我假设它们是Compiler / IDE
特定。
谢谢。
could anyone just an online resource or a book to understand error Messages in C++. I am using Visual Studio 2017. Often when writing Code one would Encounter error Messages like "C++ expression must have class type" or similar.
Is there any guide which explains what most Visual Studio errors mean? What exactly is the meaning words like identifier, expression, qualifier, arguments etc. The standard C++ language does not describe these Terms. I assume they are Compiler/IDE
specific.
Thank you.
推荐答案
您好,
VS使用的字词不是特定于编译器的。实际上,标准C ++语言描述了这些术语:
the words used by VS are not compiler specific. Indeed the Standard C++ language describes the terms:
标识符: http:// en.cppreference.com/w/cpp/language/identifiers
表达式:http://en.cppreference.com/w/cpp/language/expressions
限定符: http://en.cppreference.com/w/cpp/language/cv 等
参数:
http://en.cppreference.com/w/cpp/language/default_arguments 等
当编译器抛出错误时,该消息被描述为足以解释错误。
When the compiler throws an error, the message is described appropiate enough to explain the error.
如果您有特殊的错误消息,您不明白,然后在这里发布它们出现的代码行。我们将帮助您解决错误。
If you have special error messages that you don't understand, then post them here with the line of code where they occur. We will help you to solve the error.
问候,Guido
这篇关于更好地了解Visual Studio C ++错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!