I dont understand this operator

This is a discussion on I dont understand this operator within the C++ Programming forums, part of the General Programming Boards category; hello here is a piece of code . i dont understand this "<?=" and the ">?=" operators. can someone explain ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    18

    I dont understand this operator

    hello
    here is a piece of code . i dont understand this "<?=" and the ">?=" operators. can someone explain it to me please...........

    # include <iostream>

    // I use Dev-Cpp .So <conio.h> is allowed
    # include <conio.h>

    using namespace std;

    int main()
    {
    int ans=10,c=35;

    ans<?=c;

    cout<<ans<<endl;


    ans>?=c;

    cout<<ans<<endl;

    getch();
    return 0;
    }


    here is the output

    10
    35

    thanks.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,530
    Beat yah to it - strange operator
    I already moved it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Failure to overload operator delete
    By Elysia in forum C++ Programming
    Replies: 16
    Last Post: 07-10-2008, 01:23 PM
  2. Smart pointer class
    By Elysia in forum C++ Programming
    Replies: 63
    Last Post: 11-03-2007, 07:05 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Operator Overloading (Bug, or error in code?)
    By QuietWhistler in forum C++ Programming
    Replies: 2
    Last Post: 01-25-2006, 07:38 AM
  5. operator overloading and dynamic memory program
    By jlmac2001 in forum C++ Programming
    Replies: 3
    Last Post: 04-06-2003, 11:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21