Skip to main content
gamedev.net
🔒 Locked

byte

Started by EvilCrap Jan 6, 2002 at 4:34 PM 0 replies 200+ views
Original Post
EvilCrap
EvilCrap
how can i create a byte type, so that its one byte, and treated like a number. identical to a char in all respects except that on cout, its prints a number. i know that i could do this with a char: cout << (int)c; ... but that is uglyish... is there anyway to use typedef or something to always cast numeric?
EvilCrap
EvilCrap
NM
i can just use __int8, it works perfect.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.