hey guys am trying out something new but i need some srs help i have two code below the first compiles and run bt de second also runs bt crashes...so my question is y is different when i put my vector as an argument as shown in first code and when i just declare it within my function in second code; thanx in advance
you have a "real" vector instantiated in the first example (line) 21 and you pass a reference to this into your function.
In second example you don't. You just have a pointer to a vector. You'd have to new one up.