美文网首页
初识第三篇

初识第三篇

作者: 青木川_ | 来源:发表于2018-10-30 20:52 被阅读0次

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace 第三篇

{

    class Program

    {

        static void Main(string[] args)

        {

            Console.WriteLine("size of int {0}",sizeof(int));

            Console.WriteLine("size of float {0}",sizeof(float));

            Console.ReadLine();

            //应用变量不含实际数据,而是指一个内存位置。内置的引用的类型有,object,dynamic和string.

            //对象(object)类型  对象类型可以分配成任何其他类型(值类型,引用类型,预定义类型或用户自定义类型),在分配之前,需要先进行类型转化。

            //动态(Dynamic)类型

            //他可以存储任何类型的值在动态类型的变量中。

            //字符串类型:允许给变量分配任何字符串值。 string 有两种形式分配:引号和@引号,@被称为逐字字符串。

            //指针类型Pointer types  例如:char* cptr;

        }

    }

}

相关文章

网友评论

      本文标题:初识第三篇

      本文链接:https://www.haomeiwen.com/subject/umentqtx.html