[geeks] [4][4] matrix

Bertrand_Hutin at notes.amdahl.com Bertrand_Hutin at notes.amdahl.com
Tue Feb 26 08:04:12 CST 2002


you should use classes to define both
class float4 {
     float tt [4] [4]
....
public:
     float4::float4 {    // constructor
}
float4 myFunc  ();
PS not sure of the syntax, I have not written C++ programs for a few years.


                                                                                                            
                    Joshua D Boyd                                                                           
                    <jdboyd at cs.millers        To:     geeks at sunhelp.org                                     
                    ville.edu>                cc:                                                           
                    Sent by:                  Subject:     [geeks] [4][4] matrix                            
                    geeks-admin at sunhel                                                                      
                    p.org                                                                                   
                                                                                                            
                                                                                                            
                    26/02/2002 14:53                                                                        
                    Please respond to                                                                       
                    geeks                                                                                   
                                                                                                            
                                                                                                            




float t[4][4];

t=myFunc();

What is the proper way to declare myFunc so that the above would work
properly?  More importantly, what book or web site would one go looking up
such on?  All my c and C++ books gloss over such things since they were
meant
for freshmen.

--
Joshua D. Boyd



More information about the geeks mailing list