public String getPossibleSecretPeople()

学习 时间:2026-04-01 10:55:31 阅读:600
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-04-01 10:55:31

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