(C++)简单的统计函数调用的例子
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<Windows.h>
using namespace std;
void callMe()
{
static int count = 0;
cout << "I am called " << ++count << " times!\n";
}
int main()
{
callMe();
callMe();
callMe();
return 0;
}