We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::cout
1 parent 0eae9cc commit fe26d71Copy full SHA for fe26d71
examples/basic.cpp
@@ -1,8 +1,9 @@
1
-import std;
+#include <iostream>
2
+
3
import mcpplibs.templates;
4
5
int main() {
- std::println("=== mcpplibs.templates basic example ===");
6
- mcpplibs::templates::hello_mcpp();
7
- return 0;
+ std::cout << "=== mcpplibs.templates basic example ===\n";
+ mcpplibs::templates::hello_mcpp();
8
+ return 0;
9
}
src/templates.cppm
@@ -1,13 +1,9 @@
module;
-
export module mcpplibs.templates;
namespace mcpplibs::templates {
- export void hello_mcpp() {
10
- std::println("hello mcpp!");
11
- }
+export void hello_mcpp() { std::cout << "hello mcpp!\n"; }
12
13
-}
+} // namespace mcpplibs::templates
0 commit comments