我是C#的新手,並且在獲取有關歧義的錯誤時遇到了問題。請讓我知道需要更正的內容。c#模糊錯誤
public class JessiahP3
{
boolean isPlaying = false;
int strings = 1;
boolean isTuned = false;
public String instrumentName;
//is tuned
public void isTuned()
{
isTuned = true;
System.out.println("Currently tuning " + getInstrumentName());
}
//not tuned
public void isNotTuned()
{
isTuned = false;
System.out.println(getInstrumentName() + " is not tuned");
}
}
什麼是精確的錯誤信息? –
如果你說出'ambiguity'錯誤發生在哪裏,好友會有所幫助。 – Strelok
'System.out.println'來自Java。這不是C#代碼。 –