User login |
Processing rocks!Processing (http://processing.org) is a Java-based graphical programming language. Great for getting instant feedback and making pretty pictures. The IDE is the same one that the Arduino project uses. Not a lot of features, but it's quick and works well. I wrote a simple particle gravity app, and it animates really smoothly. I'm looking forward to using it to make more eye candy! App is attached as "planets.txt", rename to "planets.pde" for the Processing IDE to pick it up.
|
BlogsSupport Kwartzlab! |
C++ Syntax?
I'm a little confused about the syntax of your code here. Perhaps you can explain it to me.
You've got:
planets[i] = new Planet();indicating thatplanets[i]is a pointer to an object of classPlanet.On the following line, you've got:
planets[i].mass = 1. Why does this compile? Shouldn't it beplanets[i]->mass = 1?Processing
Processing is its own language, that happens to look a lot like C++. Kinda like the arduino. Processing is not C++.