CCS :: View topic - What is wrong with this code?
Sometime ago i asked here how to convert hex values to int values.Thanks to PCM_Programmer replied my question and sent me a piece of code.I copied this code and pasted then i compiled it with Ide Vers 3.20 and PCM v3.112, but it gives "Expecting LVALUE such as a variable name or * expression" on line includes "c = *ptr++;".What is wrong with this code? I can compile this piece of code with borland c++ builder v4.0 without any problem!! Can you advice me please?
c &= 0x5f; // convert to upper case.
Re: What is wrong with this code?
I copied this code and pasted then i compiled it with Ide Vers 3.20 and PCM v3.112, but it gives "Expecting LVALUE such as a variable name or * expression" on line includes "c = *ptr++;".What is wrong with this code? I can compile this piece of code with borland c++ builder v4.0 without any problem!! Can you advice me please?
Thank you! It compiles now.
:=I copied this code and pasted then i compiled it with Ide Vers 3.20 and PCM v3.112, but it gives "Expecting LVALUE such as a variable name or * expression" on line includes "c = *ptr++;".What is wrong with this code? I can compile this piece of code with borland c++ builder v4.0 without any problem!! Can you advice me please?