最新回答 / weixin_慕码人3003085
bool其实就是“逻辑型”啦,有两个值,一个是真、是、对的"true",一个是假、非、错的"false",注意赋值都必须为小写字母。
2023-03-03
最新回答 / 慕村9069391
常用的有 char ,存储用 '' (单引号)括起来的一个字符string ,存储用“”(双引号)括起来的一串字符int ,存储整数double ,存储小数bool,true 和 false 表示。
2023-02-11
string temp;
temp = today;
today = tomorrow;
tomorrow = temp;
//请在这里补充代码,实现变量today和tomorrow的交换
temp = today;
today = tomorrow;
tomorrow = temp;
//请在这里补充代码,实现变量today和tomorrow的交换
最新回答 / weixin_慕九州3115940
{ int[] score = new int[] { 90, 65, 88, 70, 46, 81, 100, 68 }; string[] name = new string[] { "景珍", "林惠洋", "成蓉", "洪南昌", "龙玉民", "单江开", "田武山", "王三明" }; int sum = 0, avg = 0; for (int i = 0; i< score.Length; i+...
2022-12-04
最新回答 / weixin_慕仙0016014
你好,朋友!你的问题是标点符号不对在 ",高于平均分的有:\n"一句中英文引号内的逗号(,)和冒号(:)都是中文状态下,应该把它们改成英文状态下的逗号和冒号。
2022-11-21
hahahahahah 笑死我了
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
int x=1;
bool a = ++x * x > 3;
Console.WriteLine(a);
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
int x=1;
bool a = ++x * x > 3;
Console.WriteLine(a);
}
}
}
2022-11-08
最新回答 / 爱吃鱼焖豆腐的H先生
小问题,注意占位符方式一Console.Write("平均分是{1},{0}", "高于平均分的有: ", avg);方式二Console.Write("平均分是{0},高于平均分的有: ", avg);
2022-11-02
最新回答 / padgettxpj
你可以设置一下断点再调试,看看每一步每个变量的数值。然后看看从哪里中止了程序。这里你首先让max 赋第一个分数数组的值89分。然后进入循环i从0开始,然后进入判断 num[0]的值89 是不是大于 max的值89,发现不是就不执行里面的语句。继续下一步循环。这时候i=1,然后判断num[1]的值90 是不是大于 max的值 89,发现是,就执行里面的语句。让max = num[1] = 90; 然后姓名 name = xingming[1]; 也就是钱东宇。之后就执行break的语句了。而break就是中...
2022-10-29
最新回答 / 慕少0559658
Console.WriteLine()与Console.Write()不同,后者不换行,而前者会在打印之后换行。这里使用的是WriteLine,会在打印之后换行,而程序输出结果要求不换行,因此把WriteLine改为Write就可以了。
2022-10-21