Hi
I'm a cpp newbie and i have a little question:
this is my header:
#ifndef TIMING_H
#define TIMING_H
#define MAX_MESSAGES 1000
typedef Message* MessageP; //inside the class?
class Timing {
public:
Timing();
private:
struct Message {
Agent *_agent;
double _val;
};
MessageP* _msgArr;
int _waitingMsgs;
};
my question is do i have to place the typedef inside the class block right above MessageP* _msgArr or is it ok to place it near all the #define..
it doesn't output compilation errors so i'm not sure about it..
Thanks