void OnStart() { //--- 결합에 참여하는 변수를 선언하고 정의합니다. string text=""; string text1="This script shows how the StringConcatenate() function works.\n"; string text2="This is the second line, at the end of which there is a line break control code.\n"; string text3="This is line number "; int num3=3; string text31=", the number of which is entered into the function as a separate parameter."; string textN="\n"; string text4="This is line number 4, preceded by a separate parameter with a line break code."; int length=StringConcatenate(text, text1, text2, text3, num3, text31, textN, text4, "\nLine 5 includes a real number: ", 0.12345); Print(text, "\nLength of the resulting string = ", length); /* 결과 This script shows how the StringConcatenate() function works. This is the second line, at the end of which there is a line break control code. This is line number 3, the number of which is entered into the function as a separate parameter. This is line number 4, preceded by a separate parameter with a line break code. Line 5 includes a real number: 0.12345 Length of the resulting string = 358 */ } |