zoukankan      html  css  js  c++  java
  • 整理—类型转换

    using System; 
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                /* int a;
                a = 1;
                int b = 3;
                int c = a + b;
                Console.WriteLine(c);
                Console.ReadLine(); */
    
                /* Console.WriteLine("请输入变量a的值");
                 string a=Console.ReadLine ();
                 Console.WriteLine ("请输入变量b的值");
                 string b=Console.ReadLine();
                 Console.WriteLine ("a+b的和为:");
                 Console.WriteLine(a+b);
              
                  /*int a1=int.Parse (a);
                  int b1=int.Parse (b);
                  int c=a1+b1;
                  Console.WriteLine (c);
                  Console.ReadLine ();*/
    
                /* Console.ReadLine();
                 int a1 = int.Parse(a);
                 int b1 = Convert.ToInt16(b);
                 int c = a1 + b1;
                 Console.WriteLine(c);*/
    
                /*double a1 = double.Parse(a);
                double b1 = Convert.Todouble16(b);
                double c = a1 + b1;
                Console.WriteLine(c);*/
                /*int a1 = int.Parse(a);
    
                int b1 = Convert.ToInt16(b);
                int c = a1 - b1;
                Console.WriteLine(c);*/
                /*double a1 = double.Parse(a);
                double b1 = Convert.Todouble16(b);
                double c = a1 * b1;
                Console.WriteLine(c);*/
                /*int a, b;
                a=6;
                b = 2;
                a = a - b;
                Console.WriteLine(a);*/
    
                /* int a=1;
                 int b = 2;
                 string s = a.ToString() + b.ToString();*/
                /* double a =1;
                 int b = 3;
                 double c = a + b;*/
                /* double a = 1.4;
                 int b = 4;
                 int c = (int)a + b;
    
                 Console.WriteLine(c);
    
               
    
                
    
                 Console.ReadLine();*/
  • 相关阅读:
    <JZOJ5912>VanUSee
    <JZOJ5910>duliu
    <JZOJ5913>林下风气
    pytest学习笔记(二)
    试用saucelabs进行浏览器兼容性测试
    pytest学习笔记(一)
    SSM框架搭建,以及mybatis学习
    游戏2048的python实现
    使用svn在github上下载文件夹
    jenkins集成python的单元测试
  • 原文地址:https://www.cnblogs.com/yg6405816/p/5365352.html
Copyright © 2011-2022 走看看