#include \"stdafx.h\"
#include <stdio.h>
void count(void);

int *yen=0;

int _tmain(int argc, _TCHAR* argv[])
{
        count();
        count();

        printf(\"%d\",*yen);

        return 0;
}

void count(void)
{
        static int c;
        c++;
        yen=&c;
        printf(\"%d\\n\",c);
}
 이렇게 하니까 되는거 같던데 전역변수로 쓸수있는건가요?