⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 overload1.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
字号:
// Build don't link:// Copyright (C) 1999 Free Software Foundation// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>// Based on bug report by JDonner <jdonner@schedsys.com>struct foo {  static int bar(); // ERROR - candidate  void bar(int); // ERROR - candidate};/* gcc emits a hard error without -pedantic, and a warning with   -pedantic, even in bad1.  */int (*ok1)() = foo::bar;void (foo::*bad1)(int) = foo::bar; // ERROR - missing &int (*ok2)() = &foo::bar; // okvoid (*bad2)(int) = foo::bar; // ERROR - overload resolution failsvoid (foo::*ok3)(int) = &foo::bar; // okint (foo::*bad3)() = foo::bar; // ERROR - overload resolution fails

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -