Results 1 to 6 of 6

Thread: ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User donfaster's Avatar
    Join Date: Jul:2011
    Location: Dobrich,Bulgaria
    Posts: 132

    ?

    ? . ?

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    , -.
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    Registered User donfaster's Avatar
    Join Date: Jul:2011
    Location: Dobrich,Bulgaria
    Posts: 132
    ? s->inf = p->inf;
    ?
    stack& operator=(stack const & r);

    ? start->link = q;

  4. #4
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    1. "->", ?
      (*s).inf.
      .. s , inf ,

      s.inf

      t ( ), inf, , , *:

      (*t).inf

      -> - :

      t->inf
    2. = - , . , "" / Foo:

      Code:
      Foo a;
      Foo b;
      
      // do some magic with b
      a = b;
      - b 1:1 ( , ).

      Foo =, ,

      Code:
      class Foo {
      ...
      Foo& operator = (Foo const & r) { // copy the contents of r into *this in some smart manner ...
      }
      ...
      };
      
      ...
      
      Foo a, b;
      
      // do some magic with b
      a = b; //  operator = ; this    ,  r   b.
    3. 1).
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  5. #5
    Registered User donfaster's Avatar
    Join Date: Jul:2011
    Location: Dobrich,Bulgaria
    Posts: 132
    , , . !

  6. #6
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606
    Quote Originally Posted by donfaster View Post
    , , . !
    C++ For Everyone Cay Horstmann - . ... c++ http://www.cplusplus.com. operator overloading (2 ) http://www.cplusplus.com/doc/tutorial/classes2/.

    t->inf anrieff "syntactic sugar" .. - ( ).

    .. PDF-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |