Search Result

Collapse
9 results in 0.0014 seconds.
Keywords
Members
Tags
operator
  •  

  • kennyxxcvi
    started a topic What does "0x" in Java mean?
    in Java

    What does "0x" in Java mean?

    Hi all,

    Can anyone explain me the meaning of "0x" in Java (Example : 0x00ffffff, 0x000000ff,.... )

    Thank all.

    Best Regards,
    Kenny Ha
    See more | Go to post

  • operator cannot be applied to java.lang.string int

    I dunno what to do. I get the following error:
    operator cannot be applied to java.lang.strin g int

    Code:
    public void actionPerformed(ActionEvent e)
    		{
    			
    
    		
    		if(e.getActionCommand().equals("Celsius"))
    		{
    		
    		
    		C = JOptionPane.showInputDialog("Enter temperature here: ");
    		
    		a1 =Double.parseDouble(C);
    			
    		Can = (C *9/5) +
    ...
    See more | Go to post
    Last edited by Niheel; Aug 13 '11, 11:22 PM.

  • mysticwater
    started a topic How does new know how much memory to allocate??
    in C

    How does new know how much memory to allocate??

    Hi,
    I was just wondering how the new operator (in C++) knows how much memory to allocate when creating an object of a class such as shown below:

    i.e

    class Books
    {
    ...
    }

    int main()
    {
    ....
    Books textbook = new Books();
    ....
    }

    I have a stronger C background and I know that in C we have to specify the memory size for...
    See more | Go to post

  • szidijani
    started a topic operator[] does not work
    in C

    operator[] does not work

    Hello!

    I have a homework for tomorrow, and I simply can't solve it.
    I have a list (with template) class, I wrote and it has an operator:

    Code:
    T& operator[](int i)
        {
            ToFirst();
            for(int j=0;j<i;j++)
            {
                StepForward();
            }
            return Act->value;
        }
    For using the elements with indexes.
    And I've...
    See more | Go to post
    Last edited by Markus; Nov 16 '10, 01:00 PM. Reason: Added [code] tags, undeleted thread and moved it to /c/answers/

  • Delete operator overloading with multiple arguments.

    I have an requirement to overload the delete operator in C++, but it should also accept the sizeof() the object that is to be deleted. Actually I am trying to built a custom memory allocator and deallocator like a pool, which makes me to overload the delete operator.
    Small example of the problem is

    Code:
    #include <new>
    #include <iostream>
    using namespace std;
    void operator delete(void* p)
    {
    ...
    See more | Go to post

  • BurnTard
    started a topic Can I save an operator in a variable?
    in .NET

    Can I save an operator in a variable?

    I'm not quite sure if this should be in the asp.net, or possibly the c# forums...

    I'm writing an asp.net calculator application in C#, and at this point it would be very useful if I could somehow save an operator in a variable, and then be able to use it later on, like this:

    Let's say I have the integer session variables a=2 and b=4
    [CODE=C#]

    protected void button_add(obje ct sender, EventArgs e)...
    See more | Go to post

  • fbooyens
    started a topic Typecast operator

    Typecast operator

    I'm new to C# and come from an embedded C background so I hope I'm not embarassing myself not too much. I need to write a simulator for a variable frequency drive which sends device parameters to a PLC. What I would like to do is create a parameter class that contains information such as scaling factor, engineering value, binary value of the parameter etc so that a floating point parameter can be converted to binary for transmission.

    ...
    See more | Go to post

  • seb666fr2@yahoo.fr
    Guest started a topic [c#] long and bitwise & operator
    in .NET

    [c#] long and bitwise & operator

    hello,

    Anybody can tell me why it is impossible to use the '&' operator
    with operands of type 'long' or 'ulong' and what i must use instead
    of this?


    thanks....
    See more | Go to post

  • Gabrielle  A. Grün
    Guest started a topic illegal reference to non-static member
    in C

    illegal reference to non-static member

    Hi All,

    Does anyone know a way around the illegal reference of a non-static

    member? Thanks.



    iNHERITANCE HIERACY

    TestInherit TestInherit

    | |

    | |

    TestInheritChil d TestInheritG

    |

    |

    TestInheritGChi ld



    ///TestInherit.hpp
    ...
    See more | Go to post
Working...