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

C++ vector

Name: Anonymous 2007-09-22 6:52 ID:r16GJhP5

I have a class with two vectors.

I use a while loop to add things into both of them, both inside their own function

they add elements to the vector correct, but for some reason one of them empty itself after the function has ended, even though I did not tell it to.


why would a vector just delete itself randomly at the end of a function?

Name: Anonymous 2007-09-22 21:13 ID:5fvOQaM1

>>1
Add like this:

def AddToVector(self, n):
    self.vector = map(lambda x: x + n, self.vector)

Name: Anonymous 2007-09-23 6:20 ID:XLEYkpIK

/r/ing ANGERED EXPERT PROGRAMMER copypasta for >>9

Name: Anonymous 2007-09-23 6:23 ID:hPrdejKS

>>9
OKAY YOU FUQIN ANGERED AN EXPERT PROGRAMMER
GODFUCKIGNDAMN
FIRST OF ALL, YOU DONT FUQIN KNOW WHAT A MAN PAGE IS
SECONDLY, THIS IS /prog/ DO NOT DEMAND USEFUL ANSWERS THE WAY YOU WANT THEM TO BE
THIRDLY PROGRAMMING IS ALL ABOUT PHILOSOPHY AND ``ABSTRACT BULLSHITE'' THAT YOU WILL NEVER COMPREHEND
AND FUQIN LASTLY, FUCK OFF WITH YOUR BULLSHYT
EVERYTHING HAS ALREADY BEEN ANSWERED IN >>8,11,12

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