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();*/
  • 相关阅读:
    TF-IDF
    智力题
    max{X,Y}和min{X,Y}的概率分布
    K-Means
    提高工作效率:给设计师的10条建议
    每个软件工程师都应该尝试的5件事
    CSS sprite 圆角——源代码
    比较大气的网页元素
    彩色网页变黑白色CSS代码变黑白色调!
    jquery适用技巧
  • 原文地址:https://www.cnblogs.com/yg6405816/p/5365352.html
Copyright © 2011-2022 走看看