Search Result

Collapse
4 results in 0.0041 seconds.
Keywords
Members
Tags
casting
  •  

  • Jose Diaz
    started a topic Converting VOID* to INT ON C/C++

    Converting VOID* to INT ON C/C++

    In the past couple of days i have noticed that a lot of people are having problems casting from one data type to another specially from void to char or int.

    First of all void* just means that the variable can pretty much hold any type of data, from character all the way unto float. Let me just show you >>

    Lets say you want void *variable;
    to be equal 100;

    Code:
    void *variable = 100;
    Now...
    See more | Go to post
    Last edited by NeoPa; Nov 18 '10, 11:48 PM. Reason: Removed illegal email and added CODE tags.

  • how to write a cast-to-reference-to-array operator for a class?

    I have following class:

    Code:
        template <size_t size>
        class Araye{
         public:
          Araye(int input[]){
           for (int i=0;i<size;i++)
            araye[i]=input[i];
          }
          int araye[size];
        };
    How should I write a cast-to-reference-to-array operator for this class so that following works:

    Code:
        int adad[3]={1,2,3};
        Araye<3>
    ...
    See more | Go to post

  • phpuser123
    started a topic What is wrong with my java codes?
    in Java

    What is wrong with my java codes?

    I just happened to read abt vectors in java..For some practice,I implemented this small script where I Store objects in a vector..Then,I want to invoke the methods of the corresponding objects.My problem is that in this line

    System.out.prin tln(vc.elementA t(i).test3());

    the test3() method of my object is being underlined..I know I am retrieving an abject from vc.elementAt(i) ,then why is the method test3() being underlined??...
    See more | Go to post

  • hilaDG
    started a topic My Float had become Decimal (38, 5)

    My Float had become Decimal (38, 5)

    Hi All,

    I have a query that refers to a value in a table that is stored as a float like this:

    Code:
    VIEW [dbo].[v_cash_sub] AS
    
    SELECT po_account,
     SUM(po_quantity  ) as cash
     FROM dbo.position
      INNER JOIN dbo.security
       ON se_id = po_security
     WHERE se_cash <> 0
     GROUP BY po_account
    And the SSMA tells me that this view had po_account (INT), po_quantity...
    See more | Go to post
Working...