已采納回答 / Ruying
string[] name = new string[8] { "景珍", "林喜洋", "成蓉", "洪南昌", "龍玉民","單江開", "田武山", "王三明" };? ? ? ? ? ? int[] score = new int[8] { 90, 65, 88, 70, 46, 81, 100, 68 };? ? ? ? ? ? int sum, avg;? ? ? ? ? ? sum = 0;? ? ? ? ? ? for (int i = 0; i < score.Length; i+...
2017-07-25
已采納回答 / qq_小神琪_03674221
這個你寫的那個交換出了點問題,應該首先將today賦給temp,這樣today就空出來了,再將tomorrow賦值到today上面,此時,我們可以看到temp就是我們之前的today了,再將temp賦給tomorrow,這樣就進行了交換。代碼:? ? ? ? ? ? temp = today;? ? ? ? ? ? today = tomorrow;? ? ? ? ? ? tomorrow = temp;其次:那個下面的{0}{1},對應的是那個后面的today,tomorrow。你可以將{0}{1}改成...
2017-07-18
已采納回答 / 許徐如生
using System;using System.Collections.Generic;using System.Text;namespace Test{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ?for (int x = 1; x <= 7; x++)//循環7行? ? ? ? ? ? {? ? ? ? ? ? ? ? for (int y = 1; y <= 7; y+...
2017-07-18
最贊回答 / qq_水夢葉滿天_04112467
using System;using System.Collections.Generic;using System.Text;namespace projGetMaxScore{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? int max = 0;? ? ? ? ? ? string[,] score = { { "吳松", "89" }, { "錢東宇", "90" }, { "伏晨"...
2017-07-16