U++ framework
Do not panic. Ask here before giving up.

Home » Community » Coffee corner » operation with ascii table character (Pascal x C++/U++)
operation with ascii table character (Pascal x C++/U++) [message #56799] Sat, 17 April 2021 00:11 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 210
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi,

I'm trying to convert a routine from Pascal to U ++, which involves an operation with the number of the character in the ascii table. The problem is that in Pascal
a = ord (result [i]) = 97 , b = ord (result [i]) = 101
a xor b results 4 and this result in U ++ (a^b) is not
considered for screen printing or string accumulation: char(4)

in Pascal, char (4) is printed "x04"!

Do you have an equivalent routine?
How to solve? is there any way?

Thanks
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GLCtrl Linux dependency
Next Topic: Deprecated code
Goto Forum:
  


Current Time: Tue May 26 15:58:05 GMT+2 2026

Total time taken to generate the page: 0.00625 seconds