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 » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » It's incredibly simple to initialize an U++ Vector (I'm sorry, Mirek, I didn't realize this was possible :-))
It's incredibly simple to initialize an U++ Vector [message #54612] Thu, 20 August 2020 09:30
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Vector<Pointf> points = {{0, 0}, {0, 10}};

Vector<Vector<int>> matrix = {{0,  245},
			  {10, 125},
			  {20, 35}};

int valx = matrix[2][0];		// == 20


Best regards
IƱaki
Previous Topic: Disable/re-enable printf()/Cout() console output
Next Topic: My WIP Port of my simple invoicing app
Goto Forum:
  


Current Time: Fri Mar 29 02:55:50 CET 2024

Total time taken to generate the page: 0.01017 seconds