Version 3 (modified by 13 years ago) ( diff ) | ,
---|
How MoleCuilder code should look like
Below you find a brief but hopefully complete list on how the code of espack should look like:
- identate by two spaces, never tabs
- Code Style from Eclipse, see ESPACK_codestyle.xml:
/* * A sample source file for the code formatter preview */ #include <math.h> class Point { public: Point(double xc, double yc) : x(xc), y(yc) { } double distance(const Point& other) const; double x; double y; }; double Point::distance(const Point& other) const { double dx = x - other.x; double dy = y - other.y; return sqrt(dx * dx + dy * dy); }
Attachments (1)
-
ESPACK_codestyle.xml
(16.0 KB
) - added by 15 years ago.
Coding stylesheet for Eclipse
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.