🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309661

Re: Kłopoty z przypisaniem do zmiennej

#309661
From: AK
Date: Wed, 21 Mar 2018 10:37
12 lines
1420 bytes
Użytkownik "Borneq" <borneq@antyspam.hidden.pl> napisał:

>W C++ piszę klasę Complex. Działała bez przeciążania operatorów.
> Teraz gdy przeciążyłem, nie działa przypisanie do zmiennej, która była wcześniej zadeklarowana, 
> jedynie do nowo zadeklarowanej.
> Complex aa = (B + B2_4A) * 0.5; <----działa

Jestes pewny ze tu dziala/to tyczy Complex &Complex::operator=(Complex & src) ?

> G = aa <--nie działa, G jest (0,0)

AK 
Technical Details
Message-ID: <p8tclp$1rc$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail
References: <p8rgrs$vsj$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From: "AK" <nobody@nowhere.net>
Newsgroups: pl.comp.lang.c
Subject: Re: Kłopoty z przypisaniem do zmiennej
Date: Wed, 21 Mar 2018 11:37:43 +0100
Organization: Aioe.org NNTP Server
Lines: 13
Message-ID: <p8tclp$1rc$1@gioia.aioe.org>
References: <p8rgrs$vsj$1@node1.news.atman.pl>
NNTP-Posting-Host: XNqYA5VVPEAL9IlwSAUHVQ.user.gioia.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse@aioe.org
X-Priority: 3
X-MSMail-Priority: Normal
X-Notice: Filtered by postfilter v. 0.8.3
X-Antivirus-Status: Clean
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.19694
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-Antivirus: Avast (VPS 180321-2, 2018-03-21), Outbound message
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit