Feb 12 - Type & reference-name =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Feb 12, 2007, ECE106 Public: Const Time operator+(time x) const; A reference variable is another name for a previously defined variable. Syntax:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Type & reference-name = previously-defined-variable; Ex: Int & rx = x; X=5; Rx=3; Cout<<rx<<endl;/3 X=8; cout<<rx<<endl;/8...
View Full Document

This note was uploaded on 04/17/2008 for the course ECE ECE106 taught by Professor Abdelrahman during the Spring '08 term at University of Toronto.

Ask a homework question - tutors are online