convert private matrix form int to double c++ : <p>i wanna convert the private member matrix[] from int to double , i tried to convert it by using the function transform() ? when i input the values
ex. matrix[i]= 90.9
it doesn't ceiling the value and doesn't convert it , where is the wrong? </p>

<p>Thanks.</p>

<pre><code>  class A
    {
    private : int matrix[10];
    public:
     A();
    void inputMatrix();
     void transformMatrix();
    };
    void A::inputMatrix()
    {
    for(int i=0; i&lt;10 ; i++)
    cin&gt;&gt;matrix[i];
    }
   void A::transform()
   {
        ceil(matrix[i]);
        double matrix = static_cast&lt;double&gt;(matrix[i]);
        cout &lt;&lt; matrix[i] ;
   }
</code></pre>
