运行下列代码,屏幕上输出( )。
1 #include <iostream> 2 using namespace std; 3 4 class my_class { 5 public: 6 static int count; 7 my_class() { 8 count++; 9 } 10 ~my_class() { 11 count--; 12 } 13 static void print_count() { 14 cout << count << " "; 15 } 16 }; 17 int my_class::count = 0; 18 int main() { 19 my_class obj1; 20 my_class::print_count(); 21 my_class obj2; 22 obj2.print_count(); 23 my_class obj3; 24 obj3.print_count(); 25 return 0; 26 }