module;
-#include <iostream>
-
export module helloworld;
+import <string>;
+import <iostream>;
+
export class HelloWorld {
public:
- void hello() {
- std::cout << "hello\n";
+ std::string hello() {
+ std::cout << "hello, ";
+ std::string s = "world!";
+ return s;
}
};