求助大师们:C++与C#中new用法的异同?
摘要:
先看下面new在C++与C#中实例化的不同://C++Student类class Student{public: string name;};//实例化Student类Student student1;Student *student2=new Student();// C#Student类public class Student{ public string Name { get{return name;} set{name=value;} } private string name;}//实例化Student类Student stu... 阅读全文
posted @ 2012-01-03 18:25 深圳彦祖 阅读(1111) 评论(1) 推荐(0) 编辑