已采纳回答 / LegendNing
你的代码不够全面。我运行了一下。你可以看一下这样是正确的。发现需要加上这样的语句就可运行了。你可以复制下面的语句在VS里面实际运行一下就可以了~~哈哈using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { ...
2018-07-10
已采纳回答 / 慕用8454954
Console.writeLine将Y直接以字符串类型5输出,若包含双引号则输出“Y”,或者Console.WriteLine("{0}",Y)也输出字符串5
2018-07-09
int year = 2018;
string text = (year % 4 == 0 && year % 100 != 0)||year % 400 == 0 ? "闰年":"平年";
Console.WriteLine("今年是{0}",text);
string text = (year % 4 == 0 && year % 100 != 0)||year % 400 == 0 ? "闰年":"平年";
Console.WriteLine("今年是{0}",text);
2018-07-09
已采纳回答 / xms_dqq
for(int i=0;i<7;i++){ for(int j=0;j<7;j++){ if(i+j==6 || i==j){ Console.Write("O"); }else{ Console.Write("."); } } Console.WriteLine(""...
2018-07-08
最新回答 / 慕九州5455903
Console.Write("平均分是" + vag + ",高于平均分的有:");改为 Console.WriteLine("平均分是" + vag + ",高于平均分的有:");就好啦
2018-07-05
最赞回答 / 慕勒206243
','是一个字符型char,num[i]是int,char类型遇到int类型,小类型转大类型,char类型转为int类型,‘,’对应的ASCII码值为44,34+44=78,42+44=86“,”是字符串类型,int类型遇到string类型,也转为string类型,最后拼接输出一个字符串
2018-07-03