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 » SQL + vector related question
Re: SQL + vector related question [message #39938 is a reply to message #39929] Mon, 13 May 2013 18:12 Go to previous message
jerson is currently offline  jerson
Messages: 202
Registered: June 2010
Location: Bombay, India
Experienced Member

Follow up

I changed the code to this and I am able to save to the database now. Is there an easier way to achieve this using native U++ utils?
	String	dat;

	for (int i =0;i < LeftSeries[0].GetCount();i++)		dat << AsString(LeftSeries[0][i]);
	dat << '\r';
	for (int i =0;i < LeftSeries[1].GetCount();i++)		dat << AsString(LeftSeries[1][i]);
	dat << '\r';
	for (int i =0;i < LeftSeries[2].GetCount();i++)		dat << AsString(LeftSeries[2][i]);
	dat << '\r';
	for (int i =0;i < LeftSeries[3].GetCount();i++)		dat << AsString(LeftSeries[3][i]);
	dat << '\r';
	for (int i =0;i < RightSeries[0].GetCount();i++)	dat << AsString(RightSeries[0][i]);
	dat << '\r';
	for (int i =0;i < RightSeries[1].GetCount();i++)	dat << AsString(RightSeries[1][i]);
	dat << '\r';
	for (int i =0;i < RightSeries[2].GetCount();i++)	dat << AsString(RightSeries[2][i]);
	dat << '\r';
	for (int i =0;i < RightSeries[3].GetCount();i++)	dat << AsString(RightSeries[3][i]);
	dat << '\r';
		        


The information in the database is like this
[4, -40][11, -40]
[1, -33][12, -33]


[5, -40][11, -40]
[1, -33][11, -33]


Each line has data for one Vector and can hold a max of 12 points.

How should I re-populate the vector from the string?

Regards
Jerson

 
Read Message
Read Message
Previous Topic: How do I make this graph?
Next Topic: Ubuntu & MySql
Goto Forum:
  


Current Time: Wed Jun 12 03:11:29 CEST 2024

Total time taken to generate the page: 0.01915 seconds