public String getPossibleSecretPeople()

学习 时间:2026-05-30 20:52:42 阅读:9257
public String getPossibleSecretPeople() {String possibles = "";int count = 1;String padding = " ";String temp = "";int padNeeded = 0;for(int i = 0; i < whoIsNotSecretPerson.length; i++) {if(!whoIsNotSecretPerson[i]) {temp = gameFuncs.getPersonAtIndex(i);padNeeded = 20 - temp.length();temp += padding.substring(0,padNeeded) + "[" + gameFuncs.getPersonDetailsAtIndex(i) + "]";possibles += temp + "\n";count++;}}return possibles;}

最佳回答

搞怪的星星

笑点低的紫菜

2026-05-30 20:52:42

给你个例子 a+=b 意思是 a=a+b,这是 c语言的常用写法 ;是C语言的波兰式 ,可以上网搜一下。