i have a bunch of data coming into my system that is in hex format.
to test my program, i put in an exact example of an input into the array it will be assigned to but came up with a bunch of errors,
Code:
unsigned char Hex_array[BUFFSIZ] =unsigned char Hex_array[BUFFSIZ]= "#RAWWAASFRAMEA,COM1,9,68.0,SATTIME,1263,248186.000,000000000,58e4,1522,22,122,62,563456345dba43623443efdaef3245345fea325345626634623623c000,22*d04567cde";
errors:
Code:
rubbish.cpp
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(18) : error C2065: 'BUFFSIZ' : undeclared identifier
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(18) : error C2057: expected constant expression
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(18) : error C2466: cannot allocate an array of constant size 0
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(18) : error C2001: newline in constant
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(19) : error C2143: syntax error : missing ';' before 'constant'
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(19) : error C2059: syntax error : 'bad suffix on number'
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(20) : error C2059: syntax error : 'bad suffix on number'
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(20) : error C2146: syntax error : missing ';' before identifier 'dba43623443efdaef3245345fea3253'
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(20) : error C2065: 'dba43623443efdaef3245345fea3253' : undeclared identifier
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(20) : error C2143: syntax error : missing ';' before 'constant'
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(20) : error C2146: syntax error : missing ';' before identifier 'c000'
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(20) : error C2065: 'c000' : undeclared identifier
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(20) : error C2001: newline in constant
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(20) : error C2065: 'd04567cde' : undeclared identifier
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(20) : error C2143: syntax error : missing ';' before 'string'
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(21) : error C2144: syntax error : missing ';' before type 'char'
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(25) : error C2065: 'uncoded' : undeclared identifier
C:\Documents and Settings\shss.GRUPOGMV\My Documents\C Stuff\decoding\rubbish.cpp(27) : error C2440: '=' : cannot convert from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Error executing cl.exe.
rubbish.exe - 18 error(s), 0 warning(s)
its probably an easy answer but i couldnt find it....