test:lib/cpp test

This commit is contained in:
luoliwoshang
2025-06-11 21:11:21 +08:00
parent e7e9530eb8
commit 9001cdb8f2

12
_demo/cppstr/cppstr.go Normal file
View File

@@ -0,0 +1,12 @@
package main
import (
"github.com/goplus/lib/c"
"github.com/goplus/lib/cpp/std"
)
func main() {
s := std.Str("Hello world\n")
c.Printf(s.CStr())
print(s.Str(), s.Size(), "\n")
}