Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ garbage collection wtf?

Name: Anonymous 2007-09-11 1:06 ID:rtAr8p98

Heres some pseudo code of mine:

global vector
function{
    create class
    fill vector with class
}


The problem is after the function ends class gets destroyed. how do i make it so that class doesn't get deleted?

Name: Anonymous 2007-09-11 9:34 ID:a3awdsOA

>>18
It was a beatiful revelation to me when I discovered that recursive functions are the key to dynamically sized arrays.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List