English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I know cout< How would I do it for a binary one?

2007-02-04 00:34:49 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

And it's C++ btw

2007-02-04 00:41:05 · update #1

I tried but it doesn't work with bin <

2007-02-04 00:48:35 · update #2

3 answers

cout << hex << a would display a as hexadecimal.

If you want to display in binary, you'll have to write a function or macro to do it.

There's no way to represent a binary literal in standard C/C++ without writing your own function or macro.

2007-02-04 05:24:43 · answer #1 · answered by Vegan 7 · 0 0

Try using cout<

2007-02-04 00:46:35 · answer #2 · answered by cardo11 3 · 0 0

What are you typing into? DOS / Word processor / etc/

2007-02-04 00:40:35 · answer #3 · answered by pappy 6 · 0 0

fedest.com, questions and answers