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   |
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
|
|
|
Goto Forum:
Current Time: Tue Aug 26 18:35:02 CEST 2025
Total time taken to generate the page: 0.07139 seconds
|