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

📄 conv2.c

📁 gcc-you can use this code to learn something about gcc, and inquire further into linux,
💻 C
字号:
// Build don't link:// Special g++ Options: -pedantic-errorsvoid cheat( int* i ) { ++(*i); } struct t {        void cheat( int& i ) { ++i; }};int main(){  void (t::*member)( const int& ) = &t::cheat; // ERROR - conversion  void (*cheater)( const int* ) = &cheat; // ERROR - converting  t t2;  const int i=1;  int j=1;  (t2.*member)( i );  (t2.*member)( j );}

⌨️ 快捷键说明

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