Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Passing Vectors as arguments of functions.
Re: Passing Vectors as arguments of functions. [message #28304 is a reply to message #28301] Thu, 26 August 2010 21:01 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1204
Registered: August 2007
Senior Contributor
A simple example code (nevermind its absurdity):

Vector<int> index;
VectorMap<String, String> person;


void Foo::AddPersons(Vector<int>& i, VectorMap<String, String>& p)
{
bla bla...
}

// In your application, all you have to do is to call the function/method properly.

Foo::AddPersons(index, person);



And here is some information about containers on UPP

http://www.ultimatepp.org/srcdoc$Core$Tutorial$en-us.html

http://www.ultimatepp.org/srcdoc$Core$Caveats$en-us.html

I hope this will help you.


And FYI, Rss example is in the UPP package/bazaar section. Not on the web page.

Regards.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Assert failed in core/value.h line 464
Next Topic: Making applications more fancy
Goto Forum:
  


Current Time: Sun Apr 27 19:43:22 CEST 2025

Total time taken to generate the page: 0.03711 seconds