String Construct in NXC
Posted: 28 Apr 2011, 09:28
Is there a way of combining text strings in NXC (like the NXT-G "Text" block)? I have tried searching here for it, but I cannot find it.
Give a child a robot, he'll play for an hour. Teach him to build, and he'll play forever.
https://mindboards.org:443/
StrCat("abc","123");
codetags
"["c"]" "["/c"]"+
operator:Code: Select all
string helloworld = "hello" + " " + "world";
+
has a special meaning for strings. (In C++, it's "overloaded".)