Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 202
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: Fri Mar 29 02:12:18 CET 2024

Total time taken to generate the page: 0.01335 seconds