Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Listing 3.16 #754

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Errata.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ Jinhang He | 5 | 255 | Edit listing 5.20 to used `image[index]` for the second p
Zhou Jing | 18 | 908 | Change comment in Listing 18.21 to "Restrict the attribute to properties and fields" from "Restrict the attribute to properties and methods"
Zhou Jing | 23 | 1080 | Change "DWORD flProtect); // The type of memory allocation" to "// The type of memory protection"
Zhou Jing | 22 | 1065 - 1066 | Changed 'Thread' to 'Task' and "Application exiting" to "Application shutting down"
Zhou Jing | 4 | 161 | Fix `input < 9` to `input < 0` in Listing 4.24
Zhou Jing | 4 | 161 | Fix `input < 9` to `input < 0` in Listing 4.24
Zhou Jing | 4 | 119 | Show inconsistent size multi-dimensional array in listing 3.16
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ public static void Main()
{
#region INCLUDE
// ERROR: Each dimension must be consistently sized
#region EXCLUDE
/*
#endregion EXLUDE
#if COMPILEERROR // EXCLUDE
int[,] cells = {
{1, 0, 2, 0},
{1, 2, 0},
{1, 2},
{1}
};
#region EXCLUDE
*/
#endregion EXCLUDE
#endif // COMPILEERROR // EXCLUDE
#endregion INCLUDE
}
}
Loading