(:source lang=cpp name=c.cc -inline:)
using namespace std;
unsigned long next_id() {
unsigned long id=800000000UL; return ++id;
}
int main() {
cout << next_id() << '\n'; cout << next_id() << '\n'; cout << next_id() << '\n';
} (:sourceend:)
id
static outside of next_id()
id
static inside of next_id()
Modified: 2010-09-10T14:39 User: Guest Check: HTML CSSEdit History Source |
Apply to CSU |
Contact CSU |
Disclaimer |
Equal Opportunity Colorado State University, Fort Collins, CO 80523 USA © 2015 Colorado State University |