2006-07-18から1日間の記事一覧

MIT OpenCourseWare | Mathematics | 18.06 Linear Algebra, Spring 2005 | Video Lectures

http://ocw.mit.edu/ocwweb/mathematics/18-06spring-2005/videolectures/index.htm 1回目だけ視聴。 Row picture / Column picture ... 名前重要、ですね。via 少年老い易く学成り難し

Pragmas - perldoc.perl.org

http://perldoc.perl.org/index-pragmas.html Perl の基本構文をオーバーライドするプラグマ。演算子オーバーロードもあった。 (via T先輩のソース) #! /usr/bin/env perl use warnings; use strict; package Complex; use overload '+' => sub{ Complex->ne…

Copy constructor and implicit type conversion

cxx

#include <iostream> class Complex { private: const double re; const double im; public: Complex(double r = 0.0, double i = 0.0) : re(r), im(i) { std::cout << "constructor: " << *this << std::endl; } Complex(const Complex& c) : re(c.re), im(c.im) { st</iostream>…