RALMAN Content - HWzone Forums
adplus-dvertising
Skip to content
  • Create an account

ralman

registered user
  • Number of messages

    297
  • Join

  • Recently visited

Everything published by Ralman

  1. c c1, c2; c2 = c1.set (1,1); c2 is a separate object so even though the value returned to it from the set function is a reference the c2 object is copied and overwritten. In order for c2 to be a reference to c1 it is necessary to change the code: c c1; c & c2 = c1.set (1,1); Note that a reference must be initialized by definition.
×
  • Create new ...

At the top of the news:

new on the site