overload1.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 21 行
C
21 行
// Build don't link:// Special g++ Options: -fpermissive// Copyright (C) 2000 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 28 Feb 2001 <nathan@codesourcery.com>// Make sure we warn about our overload extension about picking the// one with the least worse conversionstruct X{ X (int);};void Foo (int, float, bool);void Foo (float, int, X);void Baz (){ Foo (1, 1, 0); // WARNING - least worse}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?