Brownian tree/C++ animated: Difference between revisions

m
Fixed syntax highlighting.
mNo edit summary
m (Fixed syntax highlighting.)
 
(3 intermediate revisions by 3 users not shown)
Line 1:
=={{header|C++}}==
[[File:brownianTreeAnim_cpp.png|300px]]
 
The green dots you can see in this picture are what I call movers. They are particles that still do not belong to the tree.
<langsyntaxhighlight lang="cpp">
#include <windows.h>
#include <string>
Line 23 ⟶ 22:
int x, y;
};
 
//--------------------------------------------------------------------------------------------------
struct movers
Line 31 ⟶ 29:
movers() : moving( false ){}
};
//--------------------------------------------------------------------------------------------------
class myBitmap
{
Line 343 ⟶ 342:
}
//--------------------------------------------------------------------------------------------------
</syntaxhighlight>
</lang>
9,488

edits