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

📄 sr3.cc

📁 binary ultilities binary ultilities binary ultilities
💻 CC
字号:
// This file is compiled and linked into the S-record format.#define FOO_MSG_LEN 80class Foo {    static int foos;    int i;    static const int len = FOO_MSG_LEN;    char message[len];public:    static void init_foo ();    static int nb_foos() { return foos; }    Foo();    Foo( char* message);    Foo(const Foo&);    Foo & operator= (const Foo&);    ~Foo ();};static Foo static_foo( "static_foo");intmain (){  Foo automatic_foo( "automatic_foo");  return 0;}voidterminate(void){  /* This recursive call prevents a compiler warning that the noreturn     function terminate actually does return.  */  terminate ();}extern "C" {int__main (){}int__builtin_delete (){}int__builtin_new (){}void__throw (){}void__terminate (){}void *__eh_pc;void ***__get_dynamic_handler_chain (){}}int Foo::foos = 0;void Foo::init_foo (){  foos = 80;}Foo::Foo (){  i = ++foos;}Foo::Foo (char* msg){  i = ++foos;}Foo::Foo (const Foo& foo){  i = ++foos;  for (int k = 0; k < FOO_MSG_LEN; k++)    message[k] = foo.message[k];}Foo& Foo::operator= (const Foo& foo){  for (int k = 0; k < FOO_MSG_LEN; k++)    message[k] = foo.message[k];  return *this;}Foo::~Foo (){  foos--;}

⌨️ 快捷键说明

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