摘要: 1.LC346 Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example,MovingAverage m 阅读全文
posted @ 2020-02-17 14:38 黑暗尽头的超音速炬火 阅读(112) 评论(0) 推荐(0)
摘要: 1.C++ class 类的用法,什么时候用this-> this 是 C++ 中的一个关键字,也是一个 const 指针,它指向当前对象,通过它可以访问当前对象的所有成员。所谓当前对象,是指正在使用的对象。例如对于stu.show();,stu 就是当前对象,this 就指向 stu。 下面例子是 阅读全文
posted @ 2020-02-17 13:55 黑暗尽头的超音速炬火 阅读(127) 评论(0) 推荐(0)