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 |
BetoValle
Messages: 203 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
|
|
|
Goto Forum:
Current Time: Fri Sep 20 18:47:27 CEST 2024
Total time taken to generate the page: 0.03047 seconds
|