// @topic T50927 Miscellaneous small samples developed in class
// @brief 09/27/2012 -- using new and delete[ ]

#include <iostream>
int* create_int()
{
    int* pint = new int;
    return pint;
}

int main()
{
    int* ptr = create_int();
    *ptr = 456;
    delete ptr;
    ptr = create_int();

    int *ptr = 999;
    std::cout << *ptr;

    return 0;
}