danielsmusic
New Member
i am going to transfer files down 1 line (serial) this is a project.
first im going to create a program in c++ to send and receve the data.
it will convert each char to it number eg:
Ä = 186
c = 60
then seperate each digit eg:
186 = 1 8 6
60 = 6 0
then convert to my own binary table eg:
1 = 0001
8 = 0011
6 = 1100
6 = 1100
0 = 0000
then send it
the reciver will decode it and put it together.
is there any better way to do this? does anyone know any functions in c++ to convert numbers and chars to binary
first im going to create a program in c++ to send and receve the data.
it will convert each char to it number eg:
Ä = 186
c = 60
then seperate each digit eg:
186 = 1 8 6
60 = 6 0
then convert to my own binary table eg:
1 = 0001
8 = 0011
6 = 1100
6 = 1100
0 = 0000
then send it
the reciver will decode it and put it together.
is there any better way to do this? does anyone know any functions in c++ to convert numbers and chars to binary