What would be the correct way to code something like this?

Hey, CPPNoob2013 here. I'm trying to code a program, but I'm having trouble coding it correctly.

Basically, the program is going to read a byte, until the byte "0x0000" is read. Then, when 0x0000 is read, which will sometimes be in the middle of a loop; the program to break out of the loop back into the int main() routine. How would I correctly code this?
> Basically, the program is going to read a byte, until the byte "0x0000" is read

Is the data that is to be read binary or text?

ie. Would the value 12 be represented as one byte having the numeric value 12?
or would it be a sequence of characters like "0x0c"?
Topic archived. No new replies allowed.