X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=helloworld.cc;h=0e4312dcce6c060c60136935c6b22ea52cee143e;hb=775fd02ef24727639399d2664561d9c550cdafa8;hp=c2075f04f4af2252bae7d5e9f1e9a73489f7cc79;hpb=888f532312c70f907519e0f40f1311b93bdb7870;p=modules.git diff --git a/helloworld.cc b/helloworld.cc index c2075f0..0e4312d 100644 --- a/helloworld.cc +++ b/helloworld.cc @@ -1,12 +1,15 @@ module; -#include - export module helloworld; +import ; +import ; + export class HelloWorld { public: - void hello() { - std::cout << "hello\n"; + std::string hello() { + std::cout << "hello, "; + std::string s = "world!"; + return s; } };