1

TouchDevelop でプログラミングを開始しましたが、以下のエラーを入力しました。

action main ()      
var strings := collections → create string collection      
strings → set at(1, "I")      
strings → set at(2, "II")      
strings → set at(3, "III")      
strings → set at(4, "IV")      
strings → set at(5, "V")      
strings → set at(6, "VI")      
var x := math → random(6) + 1      
var s := strings → at(x)      
"The value of dice is " → concat(s) → post to wall # ERROR AT CONCAT(S)
4

1 に答える 1

0

touchdevelop 言語の場合、文字列連結文字を使用する必要があります。これは || です。. あなたの行は次のようになります。

"The value of dice is " || s → post to wall

Windows Phone 7 を使用している場合、左の 3 番目のメニューの算術演算子の横に二重パイプ文字が表示されます。

于 2013-07-01T13:56:06.297 に答える