You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C++ language provides that if a class is derived from a base class containing virtual functions, a pointer to that base class type can be used to call virtual functions in the derived class object. A class containing virtual functions is sometimes called a "polymorphic class".
11
11
12
-
<br/>
12
+
<br/>
13
13
Class hierarchy
14
14
15
15
An object of type `C` could be visualized as shown in the following figure.
|**`long double`**|same as **`double`**|none|Same as **`double`**|
52
52
|**`wchar_t`**|2|**`__wchar_t`**|0 to 65,535|
53
53
54
-
Depending on how it's used, a variable of **`__wchar_t`** designates either a wide-character type or multibyte-character type. Use the `L` prefix before a character or string constant to designate the wide-character-type constant.
54
+
A variable of **`__wchar_t`** designates either a wide-character type or multibyte-character type. Use the `L` prefix before a character or string constant to designate the wide-character-type constant.
55
55
56
56
**`signed`** and **`unsigned`** are modifiers that you can use with any integral type except **`bool`**. Note that **`char`**, **`signed char`**, and **`unsigned char`** are three distinct types for the purposes of mechanisms like overloading and templates.
57
57
58
-
The **`int`** and **`unsigned int`** types have a size of four bytes. However, portable code should not depend on the size of **`int`** because the language standard allows this to be implementation-specific.
58
+
The **`int`** and **`unsigned int`** types have a size of 4 bytes. However, portable code shouldn't depend on the size of **`int`** because the language standard allows this to be implementation-specific.
59
59
60
60
C/C++ in Visual Studio also supports sized integer types. For more information, see [`__int8, __int16, __int32, __int64`](../cpp/int8-int16-int32-int64.md) and [Integer Limits](../cpp/integer-limits.md).
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-errors-1/compiler-error-c2055.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,12 @@ helpviewer_keywords: ["C2055"]
9
9
10
10
> expected formal parameter list, not a type list
11
11
12
-
A function definition contains a parameter type list instead of a formal parameter list. ANSI C requires formal parameters to be named unless they are void or an ellipsis (`...`).
12
+
A function definition contains a parameter type list instead of a formal parameter list. ANSI C requires formal parameters to be named unless they're `void` or an ellipsis (`...`).
13
13
14
-
An example of a named formal parameter is the `int i` in `void func(int i)`. A parameter type list is a list of types, for example, `int, char`.
14
+
An example of a named formal parameter is the `int i` in `void func(int i)`.\
15
+
A parameter type list is a list of types, for example, `int, char`.
0 commit comments