The information in this article applies to:
SUMMARY
The Microsoft C/C++ Compiler versions 7.0 and later do not support Old
Style function declarations in C++ files. Old Style declarations are still
supported in C files.
C++ requires ANSI-style function prototypes (or declarations), which list
the type of each parameter accepted by the function, as shown here:
This type of declaration is required because in C++ each function has a
signature. The signature consists of the name of the function and the types
of the parameters it accepts. The compiler cannot construct the signature
of a function from the K&R declaration.
REFERENCESFor more information about parameter lists in function declarations and how these are handled by C and C++, please see the following article in the Microsoft Knowledge Base: Q94579 Creating a Function Pointer to a C++ Member Function Additional query words:
Keywords : kbLangCPP kbVC100 kbVC150 kbVC200 kbVC210 kbVC400 kbVC500 |
Last Reviewed: July 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |