1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
module; #include <iostream> module hello; using namespace std; namespace hello { say::say(int data) : data_(data) { } void say::hello() { cout << "hello, say class: " << data_ << endl; } } // namespace hello