I need to do calculations based on a variable anmount of data, each item in the data containing 3 values. I could use an array, struct or a class to represent one of the items.
Is there any difference in speed or do they behave all the same way?
// #1: Only arrays
typedef int triple[3];
// #2: Using a struct
struct triple {
    int a;
    int b;
    int c;
};
// #3: Using a class
class triple {
public:
    int a;
    int b;
    int c;
};
 
     
    