最赞回答 / Vincent_Ning
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace protest{class Program{static void Main(string[] args){dog dog1 = new dog();dog1.name = "jack";dog1.printname();}}public class pet{public string name;public void pr...
2017-09-08
最新回答 / 栀子_
已经搞清楚了,要创建项目里面选择C# .net framework. 运行的时候ctrl + F5就好了, 跟我一样刚入门的同学可以看另外一门C#基础课程,讲得比较清楚
2017-08-26
最新回答 / aini6
using System;namespace demo8{ class Program { static void Main(string[] args) { Client c1 = new Client(); Client c2 = new Client(); Dog.NewDog += c1.WantADog; Dog.NewDog += c2.WantADog; ...
2017-07-19
最赞回答 / Kazami
将oi转换为字符串类型举个例子<...code...>int a =1;是整数类型的在末尾加上Tostring就是a.Tostring()此时的a就是字符串类型的了,也就是将1变成了“1”
2017-06-02