test:lib/cpp test
This commit is contained in:
12
_demo/cppstr/cppstr.go
Normal file
12
_demo/cppstr/cppstr.go
Normal 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")
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user