I have the following:
array<Point>^ ADC1=gcnew array<Point>(2);
ADC1={Point(period,points[0][0]),Point(period,points[0][1])}; // error here!
However I get the following error when I attempt to compile the code:
error C2059: syntax error : ‘{‘
The error is at the line ADC1={ …
period is an int and points is a 2D array with int values.
can anyone help me out?
Thanks in advance
I think you can explicit initial values only at constructor level, try: