![]() |
Passing vectors as arguments
Is there any way of passing vectors as arguments in a function? It can be done with strings. If it is possible, can it be done with pointers?
Or I am obliged to stick with passing each time the vector's contents? |
Well... why don't you just do it :). I recommend using references, because that is a little faster.
|
OMG OMG... Wrong typing. This post was made because I was trying to figure out what was wrong for 1 hour, and all the time I put 'vector a' instead of defining it's type. I am stupid and I hope this thread is deleted soon. :) :)
|
No reason for it to be deleted. Congrats on figuring it out.
|
Quote:
|
If your brain's working right, what the hell are you doing coding? :p
|
:
If your brain's working right, what the hell are you doing coding? |
| All times are GMT -5. The time now is 10:51 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC