已采納回答 / 王庭序曲
關鍵在這句:從左上到右下的對角線的特點是:行數(shù)==列數(shù)從右上到左下的對角線的特點是:行數(shù)+列數(shù)==8因為你要同時打出/方向與\方向的O,所以x == y與 x + y == 8這兩個條件符合一個就可以,所以用||
2016-09-11
已采納回答 / Valder_Fields
? ? ? ? ? ? int[] score = new int[] { 89, 90, 98, 56, 60, 91, 93, 85 };? ? ? ? ? ? string[] name = new string[] { "吳松", "錢東宇", "伏晨", "程陸", "周蕊", "林日鵬", "何昆", "關欣" };?//首先char是字符,string才是字符串? ? ? ? ? ? int k = 0;? ? ? ? ? ? int max = score[0];? ? ? ? ? ? f...
2016-09-10