Pack That Class Up (To the tune of Juvenile's Back that Ass Up) I was working on a program, Had some hashin' and I thought I might need to clear my cache, and Set up an array for some organizin' But when I ran the main, I found a problem Segmentation fault, for it was callin' k get number 8, but my ints weren't fallin' my for-loop wasn't right, k was too small and so it wouldn't run, it started stallin'. To find the point in case, I wrote a cout for it would help me trace what the err was about then I could write a line to take another route and my function work without a single doubt. I tried to run again, but it wouldn't compile the error this time was in a do-while I was repeatedly trying to open a file that didn't exist, so I changed the style. Chorus: The function looks good, now pack that class up Its a fine looking program, won't you pack that class up Call a member function and pack that class up Make a game you be playin with, pack that class up The function looks good, now pack that class up Its a fine looking program, won't you pack that class up Call a member function and pack that class up Make a game you be playin with, pack that class up The function looks good, now pack that class up Its a fine looking program, won't you pack that class up I looked at the clock and began to panic Soon I became a CPS fanatic I thought about a vector, or a sorted queue With all these possibilities, I didn't have a clue Its good for giving min vals, that I know is true But thats not what I need, so I started something new I don't need a min val, nor do I need a max And then I remembered that I could use stacks it gives a good performance when working backtracks now if I could only use the right syntax I had to make a choice between public and private I think it really depends on the client If they're big like Microsoft, a giant They'll want to change my code and act defiant To share, should I use a global or a static? It came down to such small semantics Chorus: The function looks good, now pack that class up Its a fine looking program, won't you pack that class up Call a member function and pack that class up Make a game you be playin with, pack that class up The function looks good, now pack that class up Its a fine looking program, won't you pack that class up Call a member function and pack that class up Make a game you be playin with, pack that class up Before I can abort I must report All my cohorts In deciding a sort Selection? Insertion? Put each in a different function. For my constructor I become an inspector To see that I initialize the t-vector All I did was stare Until I found my err Why was I using string instead of char? Now that I am almost done It is fun My errors added up to none and it runs Implementation Of my creation: I find the best one using Big-Oh notation Chorus: The function looks good, now pack that class up Its a fine looking program, won't you pack that class up Call a member function and pack that class up Make a game you be playin with, pack that class up The function looks good, now pack that class up Its a fine looking program, won't you pack that class up Call a member function and pack that class up Make a game you be playin with, pack that class up So what does it do, this time consuming hack? A push, push, push, then pops it from the stack. So what does it do, this time consuming hack? A push, push, push, then pops it from the stack, then pops it from the stack, then pops it from the stack, does a backtrack, then pops it from the stack. It pops it from the stack, pop, pops it from the stack, pops it from the stack, pop, pops it from the stack....