From: <arj...@us...> - 2013-11-27 08:38:38
|
Revision: 12760 http://sourceforge.net/p/plplot/code/12760 Author: arjenmarkus Date: 2013-11-27 08:38:36 +0000 (Wed, 27 Nov 2013) Log Message: ----------- Small corrections to example x22c - MSVC/C++ did not like the use of nc for an array dimension. Using the construction from the C example. Modified Paths: -------------- trunk/examples/c++/x22.cc Modified: trunk/examples/c++/x22.cc =================================================================== --- trunk/examples/c++/x22.cc 2013-11-27 06:28:01 UTC (rev 12759) +++ trunk/examples/c++/x22.cc 2013-11-27 08:38:36 UTC (rev 12760) @@ -172,7 +172,9 @@ PLFLT dx, dy, x, y; PLFLT xmin, xmax, ymin, ymax; PLFLT Q, b, dbdx; - PLFLT clev[nc]; +#define NC 11 + int nc = NC; + PLFLT clev[NC]; dx = 1.0; dy = 1.0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |