Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'auto' cannot be combined with any other type-specifier
Remarks
A type specifier is used with the auto keyword.
To correct this error
- Do not use a type specifier in a variable declaration that uses the
autokeyword.
Example
The following example yields C3530 because variable x is declared with both the auto keyword and type int, and because the example is compiled with /Zc:auto.
// C3530.cpp
// Compile with /Zc:auto
int main()
{
auto int x; // C3530
return 0;
}