ctors17.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 22 行
C
22 行
// Build don't link: // GROUPS passed constructors// ctor file// Message-Id: <199306151813.gD28471@mail.Germany.EU.net>// From: stephan@ifconnection.de (Stephan Muehlstrasser)// Subject: gcc 2.4.3.1: illegal constructor call not rejected// Date: Tue, 15 Jun 1993 18:34:14 +0200 (MET DST)#include <fstream>class X : public std::ifstream { // ERROR - candidate public: X(int a, char *b) {} // ERROR - candidate};int main(){ X *y = new X(10, "123"); // the compiler must reject this constructor call: X *x = new X("abc");// ERROR - .*}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?