初识第三篇

2018-10-30  本文已影响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;

        }

    }

}

上一篇 下一篇

猜你喜欢

热点阅读