正在进行安全检测...

发布时间:1714499669   来源:文档文库   
字号:

/* 判断输入的字符串是否为实数
*/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace isNumber { class Program
{

static void Main(string[] args
{ string str; Console.WriteLine("请输入一个字符串:"; str=Console.ReadLine(; if (isNumber(str Console.WriteLine("这是一个实数"; else
Console.WriteLine("这不是一个实数"; Console.ReadLine(;
} static bool isNumber(string str

本文来源:https://www.2haoxitong.net/k/doc/d79197700a1c59eef8c75fbfc77da26925c59681.html

《正在进行安全检测....doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式

相关推荐