i m doing a program now. in which i need to get ascii values like SOH, NUL etc from the serial port.
i m getting the values as string. i don know how to process the ascii values to obtain the original values back.
Too vague to answer. What does "obtain the original values back" mean? You have a string and you can't extract the ASCII values? You can't display non-printable characters? The string is corrupted? You're not reading correctly from the serial cable? Etc.?
gets, strlen. printf with a "%c" argument. These are all for strings and printable characters. You need to use low-level read and write commands, not functions like "gets". If NULL means anything but a NULL terminator, you can't think of this in terms of strings. Rename your character array. It can only confuse things to call it "str". It's not a string.
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...