int static_count() { static int count = 0; return count++; } 转载于:https://www.cnblogs.com/chhyong88/archive/2011/12/03/2274703.html