摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 练习_嵌套 { class Program { static void Main(string[] args) { //一个游戏,前...
阅读全文
posted @ 2016-05-09 08:31
爱意红沉
阅读(255)
推荐(0)
编辑
摘要:
1、Console.ReadLine(); 接收用户输入的内容,接收过来的值默认为string字符串类型; 2、类型转换: string类型转换为值类型(int,decimal,double) int.parse(要转换的值或是变量); Convert.ToInt32(要转换的值或是变量); 值类型
阅读全文
posted @ 2016-05-09 08:29
爱意红沉
阅读(150)
推荐(0)
编辑
摘要:
using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { ////单位给发...
阅读全文
posted @ 2016-05-09 08:25
爱意红沉
阅读(168)
推荐(0)
编辑
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 练习4 { class Program { static void Main(string[] args) { ////输入一个10...
阅读全文
posted @ 2016-05-09 08:22
爱意红沉
阅读(599)
推荐(0)
编辑
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 习题5 { class Program { static void Main(string[] args) { //打印方形,每行...
阅读全文
posted @ 2016-05-09 08:19
爱意红沉
阅读(129)
推荐(0)
编辑
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 练习2 { class Program { static void Main(string[] args) { //输入3个数,将这...
阅读全文
posted @ 2016-05-09 08:17
爱意红沉
阅读(115)
推荐(0)
编辑
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 课后提1 { class Program { static void Main(string[] args) { // //用户输...
阅读全文
posted @ 2016-05-09 08:15
爱意红沉
阅读(143)
推荐(0)
编辑
摘要:
using System; using System.Collections.Generic; using System.Text; namespace _99乘法表 { class Program { static void Main(string[] args) { for (int i = 1; i <= 9; i...
阅读全文
posted @ 2016-05-09 08:13
爱意红沉
阅读(117)
推荐(0)
编辑
摘要:
String类: .Length 字符的长度 .Trim() 去掉开头以及结尾的空格 .TrimStart() 去掉字符串开头的空格 .TrimEnd() 去掉字符串后面的空格 .ToUpper() 全部大写 .ToLower() 全部小写 Substring(起始位置,截取长度) Substrin
阅读全文
posted @ 2016-05-09 08:11
爱意红沉
阅读(94)
推荐(0)
编辑