小编Tom*_*ten的帖子

如何找到最高和最低的数字C#

我从三个变量中得到三个值.如何查看谁是最高号码谁是最低号码?

数字表示如下:

private int _score1; 
private int _score2; 
private int _score2; 
Run Code Online (Sandbox Code Playgroud)

码:

Public int Highest
{
  return the highest number here;
}

public int Lowest
{
  return the lowest number here;
}
Run Code Online (Sandbox Code Playgroud)

我可以计算构造函数中的最高和最低数字吗?

c#

3
推荐指数
3
解决办法
5万
查看次数

在C#中将时间分割为两个变量

我想知道如何将时间分成两个变量.

我得到这样的时间

string myTime = Console.ReadLine();
Run Code Online (Sandbox Code Playgroud)

如果我在12:14输入,我怎么能在一个变量中得到12而在另一个变量中得到14?

.net c# time split

2
推荐指数
1
解决办法
3201
查看次数

标签 统计

c# ×2

.net ×1

split ×1

time ×1