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

📄 explicit72.c

📁 gcc-you can use this code to learn something about gcc, and inquire further into linux,
💻 C
字号:
// Build don't link:// Contributed by Reid M. Pinchback <reidmp@MIT.EDU>// Adapted by Alexandre Oliva <oliva@dcc.unicamp.br>// plain char, signed char and unsigned char are distinct typestemplate <class X, class Y> struct bug {};template <class X> struct bug<X,char> { typedef char t; };template <class X> struct bug<X,unsigned char> { typedef unsigned char t; };template <class X> struct bug<X,signed char> { typedef signed char t; };template <class X> struct bug<char,X> { typedef char t; };template <class X> struct bug<unsigned char,X> { typedef unsigned char t; };template <class X> struct bug<signed char,X> { typedef signed char t; };void foo() {  bug<int,char>::t();  bug<int,signed char>::t();  bug<int,unsigned char>::t();  bug<char,int>::t();  bug<signed char,int>::t();  bug<unsigned char,int>::t();}

⌨️ 快捷键说明

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