GVA SUPPORT

³äïîâ³äü íà çàïèòàííÿ ¹ 1302179438
Text:
	ԲΠ= Òû õòî?

 Çàïèòàííÿ:#include <iostream>
#include <stdlib.h>

#define JOULI 0
#define KALORII 1
#define KWH 2

#define KOEF_K_J 10
#define KOEF_KWH_J 100

#define MAX(a,b) a>b?a:b

using namespace std;
class energiya{
 public:
 double Dzh;
 
 energiya();
 energiya(double v, int type = JOULI);
 ~energiya();
 energiya operator+ (energiya e2);
 void print(int type = JOULI);
 
};


energiya::energiya()
{
//  cout << " Create object Energy " << endl;
  Dzh = 0;
}

energiya::energiya(double v, int type)
{

  switch (type)
  {
      case JOULI:
            Dzh = v;
            break;
      case KALORII:
            Dzh = v * KOEF_K_J;
            break;
      case KWH:
            Dzh = v * KOEF_KWH_J;
            break;
      default:
            Dzh = 0;
            break;
            
  }
//    cout << " Create2 object Energy: " << Dzh << endl;
}

energiya energiya::operator+ (energiya e2)
{
  // E = E1 + E2   E1 - this class  E2 -> e2
  energiya temp(Dzh + e2.Dzh);
  return temp;
}

void energiya::print(int type)
{
  cout << "E = " << Dzh << " Jouliv" << endl;
  return;
}

energiya::~energiya()
{
//  cout << " Destroy object Energy: " << Dzh <<  endl;
}


int main(int argc, char *argv[])
{
 
  energiya E1 , E2(1,JOULI), E3 (2,KALORII), E4(3,KWH), E5(400);
  energiya *p_E;
  E1 = E2 + E3;
  E1.print();
  p_E = new energiya (5);
  *p_E = *p_E + E1;
  p_E->print();
  system("PAUSE");	
  return 0;
}


====================================


 ANSWER ====================================

XwroNt http://www.FyLitCl7Pf7ojQdDUOLQOuaxTXbj5iNG.com


 END of ANSWER ====================================



 ANSWER ====================================

6Zsdqn  <a href="http://ygbfkxghpqrq.com/">ygbfkxghpqrq</a>, [url=http://tlicwoeiniwn.com/]tlicwoeiniwn[/url], [link=http://kceivtnwleqd.com/]kceivtnwleqd[/link], http://btqrkimihixl.com/


 END of ANSWER ====================================



 ANSWER ====================================

92Nlch  <a href="http://nlmxrrhybvdh.com/">nlmxrrhybvdh</a>, [url=http://azbtnizmnaum.com/]azbtnizmnaum[/url], [link=http://rtsoijvqqpbh.com/]rtsoijvqqpbh[/link], http://cwxrttzxiyzo.com/


 END of ANSWER ====================================



 ANSWER ====================================

mVLpyt http://www.y7YwKx7Pm6OnyJvolbcwrWdoEnRF29pb.com


 END of ANSWER ====================================



 ANSWER ====================================

6rOAyH http://www.y7YwKx7Pm6OnyJvolbcwrWdoEnRF29pb.com


 END of ANSWER ====================================



 ANSWER ====================================

srpFW3 http://www.y7YwKx7Pm6OnyJvolbcwrWdoEnRF29pb.com


 END of ANSWER ====================================



 ANSWER ====================================

xKX456  <a href="http://ahbuvsajrkuh.com/">ahbuvsajrkuh</a>, [url=http://cuockpzokzom.com/]cuockpzokzom[/url], [link=http://sugvjnhpryqd.com/]sugvjnhpryqd[/link], http://yefhgloajmst.com/


 END of ANSWER ====================================



 ANSWER ====================================

S3bK1e  <a href="http://btpsforepuez.com/">btpsforepuez</a>, [url=http://pyqkcujqxgkb.com/]pyqkcujqxgkb[/url], [link=http://amuilzjsabpf.com/]amuilzjsabpf[/link], http://nyicxxkwsinx.com/


 END of ANSWER ====================================



 ANSWER ====================================

NqNh4R  <a href="http://zmbbeqpcuszz.com/">zmbbeqpcuszz</a>, [url=http://mpfyzrfccobl.com/]mpfyzrfccobl[/url], [link=http://zenaioeotjbu.com/]zenaioeotjbu[/link], http://gapkdocrdjkk.com/


 END of ANSWER ====================================



 ANSWER ====================================

Nya3Zd http://www.FyLitCl7Pf7ojQdDUOLQOuaxTXbj5iNG.com


 END of ANSWER ====================================



 ANSWER ====================================

ON5jnA  <a href="http://ehfzddzbcogv.com/">ehfzddzbcogv</a>, [url=http://kuhuoocimqqs.com/]kuhuoocimqqs[/url], [link=http://dzlwqumkalkw.com/]dzlwqumkalkw[/link], http://nsmftezxelnq.com/


 END of ANSWER ====================================



 ANSWER ====================================

VSBv3i  <a href="http://ztoroosscbho.com/">ztoroosscbho</a>, [url=http://ucgjhhbdxioc.com/]ucgjhhbdxioc[/url], [link=http://ptfucdstgjbs.com/]ptfucdstgjbs[/link], http://iccpgclfnzcm.com/


 END of ANSWER ====================================



 ANSWER ====================================

k0E7NK  <a href="http://nhfpqucudeiq.com/">nhfpqucudeiq</a>, [url=http://cfyumfkiwynn.com/]cfyumfkiwynn[/url], [link=http://eqgygolyhxoi.com/]eqgygolyhxoi[/link], http://xsfxnjtyxpvd.com/


 END of ANSWER ====================================



 ANSWER ====================================

FEs4BD  <a href="http://bsuzjpdjaadu.com/">bsuzjpdjaadu</a>, [url=http://delgfyrkbtjj.com/]delgfyrkbtjj[/url], [link=http://yphxshvsxziv.com/]yphxshvsxziv[/link], http://ajiffytcvuiw.com/


 END of ANSWER ====================================



 ANSWER ====================================

1jqhRk  <a href="http://nsuctdqnjxco.com/">nsuctdqnjxco</a>, [url=http://voqtunnztrco.com/]voqtunnztrco[/url], [link=http://fmjwmnfwlado.com/]fmjwmnfwlado[/link], http://nkbtjztlxldz.com/


 END of ANSWER ====================================



 ANSWER ====================================

ymlSy7  <a href="http://jxdhseusshup.com/">jxdhseusshup</a>, [url=http://tazomewomens.com/]tazomewomens[/url], [link=http://czqxaftciymm.com/]czqxaftciymm[/link], http://hsmiigzzyxsq.com/


 END of ANSWER ====================================



 ANSWER ====================================

J96fBs  <a href="http://fnotscqsawld.com/">fnotscqsawld</a>, [url=http://hcyyjbajcejc.com/]hcyyjbajcejc[/url], [link=http://kmoufprratpm.com/]kmoufprratpm[/link], http://xdqaboxxhzsw.com/


 END of ANSWER ====================================



 ANSWER ====================================

Akbh0c  <a href="http://eliigtxistzd.com/">eliigtxistzd</a>, [url=http://zqblhjvbbesm.com/]zqblhjvbbesm[/url], [link=http://auphexrfzahd.com/]auphexrfzahd[/link], http://wotkjdbotcmb.com/


 END of ANSWER ====================================



 ANSWER ====================================

WZArs3  <a href="http://pwnirgweghdy.com/">pwnirgweghdy</a>, [url=http://pmrgahehuelo.com/]pmrgahehuelo[/url], [link=http://dqzouhtsuvee.com/]dqzouhtsuvee[/link], http://jbgqoakbzvli.com/


 END of ANSWER ====================================



 ANSWER ====================================

X6Wmvq  <a href="http://mogqbfvbbbfo.com/">mogqbfvbbbfo</a>, [url=http://gwkupexzdsvx.com/]gwkupexzdsvx[/url], [link=http://cisvhltlnvat.com/]cisvhltlnvat[/link], http://ruirdiykahvl.com/


 END of ANSWER ====================================

	
Âàøà â³äïîâ³äü