「电脑玩物」中文网最近更新

编程

C++ unique_ptr

07net01.com 发布于 2016-11-06

[摘要: unique_ptr 没有同享它的指针。它没法复造到其他 unique_ptr,没法经过值传送到函数,也没法用于须要副本的任何规范模板库 (STL) 算法。只能挪动unique_ptr

阅读(68)评论

IT技术

Setter with =

07net01.com 发布于 2016-09-24

class Song include Comparable @@plays = 0 attr_reader :name, :artist, :duration attr_writer :duration def initialize(name, artist, duration) @nam

阅读(199)评论

IT技术

Provide the getter

07net01.com 发布于 2016-08-30

class CD include Comparable @@plays = 0 attr_reader :name, :artist, :duration attr_writer :duration def initialize(name, artist, duration) @name

阅读(91)评论

IT技术

include Comparable

07net01.com 发布于 2016-08-27

class CD include Comparable @@plays = 0 attr_reader :name, :artist, :duration attr_writer :duration def initialize(name, artist, duration) @na

阅读(75)评论