summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/partitions_implunit/ModulesTutorial.cpp
blob: 130a5778c5b006b7cc8635cd347cba0aab76bad6 (plain)
1
2
3
4
5
6
7
8
9
10
#include <iostream>

import BasicPlane.Figures;

int main(int argc, char** argv) {
    Rectangle r{ {1,8}, {11,3} };
    std::cout << "area: " << area(r) << '\n';
    std::cout << "width: " << width(r) << '\n';
    return 0;
}