C++ script showing distinctino between auto and static variables