首页 >> 文摘 >> C#

C#基础学习之IF用法小例

采集日期:2008-5-3作者:denuvead(注:本数据由系统自动采集,内容与BHCODE无关)
using System;using System.Collections.Generic;using System.Text;namespace @if...{    class Program    ...{        static void Main(string[] args)        ...{            int count = 0;            start:            Console.Write("请输入您的用户名: ");            string str = Console.ReadLine();            if (str.Length > 0)            ...{                if (str.Equals("user name"))                ...{                    Console.WriteLine("您输入正确,谢谢您的使用,再见!");                }                else if (cou
本周推荐
MORE
热点关注
MORE