string Concat(string,string)
Return Type: string
Parameters: string A, string B
Description:
This function will concatenate two strings. Strings can also be concatenated
using the ‘+’ operator.
Example
Code |
1 >>string
A = "Hi ";
2 >>string B = "World!";
3 >>string C = Concat(A, B);
4 >>string D = A + B;
5 >>disp(C);
Hi World!
6 >>disp(D);
Hi World! |
The ‘+’ operator can concatenate multiple
strings in sequence.
Example
Code |
1 >>int
i = 10;
2 >>string s = "The int i is: [" + string(i) + "]";
3 >>disp(s);
The int i is: [10] |