THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/05/2009 at 11:49, xxxxxxxx wrote:
Cinema 4D Version: r11
Language(s) : C++ ;
heya, i get an error i dont understand:
\> Vector count = bc->GetVector(SC_COUNT);
\> for (int i=0;i<count.x;i++)
\> for (int j=0;j<count.y;j++)
\> for (int k=0;k<count.z;k++);
\> temp += i + j + k;
error C2065: 'k': nichtdeklarierter Bezeichner
what exactly is wrong there??
thanks for helping me here..
(btw, seems the email notifier of this forum is not working?? too bad it seems that this counts for the password recovery, too)
On 07/05/2009 at 12:11, xxxxxxxx wrote:
maybe you should remove the ';' at the end of this line :
> for (int k=0;k<count.z;k++);
this type of error is hard to spot and can really drive you mad
On 07/05/2009 at 13:15, xxxxxxxx wrote:
omg.. i am getting blind thanks for seeing it
On 07/05/2009 at 18:50, xxxxxxxx wrote:
Yeah, like if you forget the ";" at the end of an enum in the plugin's .h file. Suddenly you get hundreds of compiler errors that lead you anywhere, but not to the missing ";".
C++ can be so much fun ^_^
On 07/05/2009 at 20:21, xxxxxxxx wrote:
Come on! C++ is an adventure, a quest, well, nevermind...
On 08/05/2009 at 06:13, xxxxxxxx wrote:
That's why I love it!
You can write code for 30 years, and still learn something new once in a while, I guess.
On 08/05/2009 at 06:38, xxxxxxxx wrote:
yeah, for example i always discover lots of new ways to produce errors, when i'm on a late night coding session