shape_doc 0.1
|
# include <iostream> # include <shape/plane.hpp> using namespace std ; using namespace mmx ; using namespace shape ; # define Plane plane<double> int main(int argc, char ** argv) { Plane p1("x") ; // Default constructor Plane p2 = p1 ; // Copy constructor Plane p3 ; p3 = p1 ; // Assignement operator Plane p4("x+y") ; if(p1 != p2) return EXIT_FAILURE ; if(p1 == p4) return EXIT_FAILURE ; return EXIT_SUCCESS ; }