patch_main
This commit is contained in:
parent
144267f134
commit
c1bd0d12cf
Binary file not shown.
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <ctime>
|
||||||
|
|
||||||
// static Base *generate(void)
|
// static Base *generate(void)
|
||||||
// {
|
// {
|
||||||
|
|
@ -78,7 +79,9 @@ void identify(Base& p)
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
std::srand(std::time(NULL));
|
||||||
Base* ptr;
|
Base* ptr;
|
||||||
|
/////////////////////////////////
|
||||||
std::cout << "Test 1 PTR: " << std::endl;
|
std::cout << "Test 1 PTR: " << std::endl;
|
||||||
ptr = generate();
|
ptr = generate();
|
||||||
identify(ptr);
|
identify(ptr);
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue