U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Vector<Vector<double>> (Error in creating Vector<Vector<double>>)
Re: Vector<Vector<double>> [message #49517 is a reply to message #49514] Thu, 22 February 2018 08:22 Go to previous messageGo to previous message
Upp_User is currently offline  Upp_User
Messages: 8
Registered: May 2017
Location: India
Promising Member
Thanks for the clarification. i modified as below and it worked as expected.
void Bezier::getBez()
{
	cout<<"generating the square matrix"<<endl;
	
	for(int i=0;i<5;i++)
	{
		for(int i=0;i<5;i++)
		{
			tbez.Add()=double(i);
		}
		bezy<<tbez;
		tbez.Clear();
	}

	
}


But is there an easy way to directly assign the values. like, bezy[i][i]=double(i)?, using it, is not giving any compilation error, but shows assertion failed.

Thanks


UPP User
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with websocket connect method
Next Topic: How to close the websocket connection
Goto Forum:
  


Current Time: Sat Apr 25 22:08:24 GMT+2 2026

Total time taken to generate the page: 0.00436 seconds