AM> Vector(double xx = 0, double yy = 0); // constructor
Are two default values legal?
AM> Vector Vector::operator+(const Vector & V2) const
AM> {
AM> Vector add;
AM>
AM> add.x = x + V2.x;
AM> add.y = y + V2.y;
AM> return add;
AM> }
String operator+(String& left, String& right) {
String str;
strcat(str.s, left.s);
strcat(str.s, right.s);
str.getLength();
return str;
}
I used the same type of temporary in the same type situation
with no problems.
return str;
Returns the value of the 'str' object before it is deallocated.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)
|