bytearray - How to Declare byte* ( byte array ) in c++? -
how declare byte* ( byte array ) in c++ , how define parameter in function definition?
when declare below
function declaration:
int analysis(byte* inputimage,int nheight,int nwidth);
getting error : "byte" undefined
there no type byte
in c++. should use typedef
before. like
typedef std::uint8_t byte;
in c++11, or
typedef unsigned char byte;
in c++03.
Comments
Post a Comment