I am planning to transfer a txt file to another txt file.
in the first file for example "1.txt".
there are characters of hexadecimal.
such as "02 1B 5B 01 18 E8 1B 43 40 0B 10 00 92 01 00 00"
although I can read them through s[i] one by one.but it is not convieniant.
I want to transfer the data into array[i],each element has two characters such as"02"or"1B".so I can change it into decimal easily.
PanGalactic saidWhy not just use iostreams? iostreams can parse hexadecimal into integers directly and format them in decimal. But namespace std; is actually what you are thinking of. iostream actually only takes care of input & output.