Hi,
I am new to C++ and trying to write a function that returns a pointer to a structure.
I have a header file as follows.
class Blah
{
public:
struct Values *getValues();
struct Values
{
int A;
int B
double C;
}
}
My class file is as follows....
#include "Blah.h"
struct Values* Blah::getValues()
{
Values *ptr;
return ptr;
}
I get an error though that states Cannot convert 'Blah::Values*' to 'Values*'
Can anyone tell me what I am doing wrong? Thanks.