swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I trust in Objective-C?


From: Fabio Mascelloni
Subject: How can I trust in Objective-C?
Date: Wed, 10 Mar 1999 10:59:09 +0100

In the interface of one of my program's classes , I define an array of
float values called local_y.After that I initialize it and print its
content with a function called
"printfRow" implemented in this way:

void printfRow(float *vect,unsigned dim)
{
    unsigned idx;
    for (idx=0;idx<dim;idx++) printf ("%f ",*(vect+idx));
    printf ("\n");
}

Here's the output for an instance of dim 2 when I try to use its
elements in a method defined int the same class

printfRow(local_y,2); // the output is   4.061603  3.941553

// now I try to write these values whithout using printfRow

printf ("First value : %f \n",*(local_y));             //the output is
452.150452
printf ("Second value : %f \n",*(local_y+1));     //the output is
0.000000

Fabio.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]