public String getPossibleSecretPeople()

学习 时间:2026-08-13 07:25:54 阅读:837
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-08-13 07:25:54

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