October 16, 200421 yr Hi,I wonder what the corresponding functions are for ord and chr in CBrgdsEugen
October 16, 200421 yr In C/C++, a character is a byte (or a word if you are setup to use Unicode). There is no distinction. Anyway, the code below should illustrate:char c = 'A'; // should be ascii 65int i = (int)c; // i = 65 = ord('A')char zero = '0';char one = (char)((int)zero + 1); // chr function = '1'There are also some Win32 API or some C runtime library functions for each, and they support unicode (double byte, or word sized, characters).That's why they use ADA to program the F16 flight control systems...
October 18, 200421 yr ADA! You said the ADA word! I am melting, ADA, ADA, ADA!When working for the U.S. Navy, ADA was being pushed down our throats as the next language to be used for all Government projects. Most colleges didn't support teaching ADA.Since being retired for almost four years, I don't know were ADA stands but it seemed to be declining even before I retired.Now excuse me, I have to go brush my teeth to get the ADA strings out between my teeth. I am going to gargle also to kill the ADA bacteria. Now were did I put that Listerine, UGH!!!W. Sieffert Bill Sieffert
October 18, 200421 yr ADA-boy? Cheech, no respect for the daughter of Lord Byron...I'm not sure I want to admit I worked on that compiler...
Create an account or sign in to comment