|
|
|
Помогите с системами исчисления
|
|||
|---|---|---|---|
|
#18+
У меня есть переменная типа int Надо ее вывести как текст (string) в двоичной, восьмеричной и шестнадцатиричной системе исчисления. Есть какие-то готовые функции ? Или может где-нить валвються ? Дайте ссылку или киньте сюда. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.10.2005, 11:53 |
|
||
|
Помогите с системами исчисления
|
|||
|---|---|---|---|
|
#18+
Применяя ТЛ, вижу, что есть у тебя С++Builder HexToStr, IntToStr AnsiString().sprintf Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.10.2005, 12:01 |
|
||
|
Помогите с системами исчисления
|
|||
|---|---|---|---|
|
#18+
Карабас БарабасПрименяя ТЛ, вижу, что есть у тебя С++Builder HexToStr, IntToStr AnsiString().sprintf Posted via ActualForum NNTP Server 1.3 Да, среда разработки С++ Билдер HexToStr - понятно.. А как с двоичным и восмиричным прдставлением ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.10.2005, 12:14 |
|
||
|
Помогите с системами исчисления
|
|||
|---|---|---|---|
|
#18+
C++Builder Helpprintf Conversion-Type Characters See also The information in this table is based on the assumption that no flag characters, width specifiers, precision specifiers, or input-size modifiers were included in the format specifier. Note: Certain conventions accompany some of these format specifiers. Type Char Expected Input Format of output Numerics d Integer signed decimal integer i Integer signed decimal integer o Integer unsigned octal integer u Integer unsigned decimal integer x Integer unsigned hexadecimal int (with a, b, c, d, e, f) X Integer unsigned hexadecimal int (with A, B, C, D, E, F) f Floating point signed value of the form [-]dddd.dddd. e Floating point signed value of the form [-]d.dddd or e[+/-]ddd g Floating point signed value in either e or f form, based on given value and precision. Trailing zeros and the decimal point are printed if necessary. E Floating point Same as e; with E for exponent. G Floating point Same as g; with E for exponent if e format used Characters c Character Single character s String pointer Prints characters until a null-terminator is pressed or precision is reached % None Prints the % character Pointers n Pointer to int Stores (in the location pointed to by the input argument) a count of the chars written so far. p Pointer Prints the input argument as a pointer; format depends on which memory model was used. It will be either XXXX:YYYY or YYYY (offset only). Infinite floating-point numbers are printed as +INF and -INF. An IEEE not-a-number is printed as +NAN or -NAN. ну так ведь просто нажать F1 Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.10.2005, 12:16 |
|
||
|
Помогите с системами исчисления
|
|||
|---|---|---|---|
|
#18+
Ха-ха, двоичной нету, придется руками Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.10.2005, 12:18 |
|
||
|
Помогите с системами исчисления
|
|||
|---|---|---|---|
|
#18+
100 зеленых рублей и будет тебе функция Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.10.2005, 12:18 |
|
||
|
Помогите с системами исчисления
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.10.2005, 12:50 |
|
||
|
Помогите с системами исчисления
|
|||
|---|---|---|---|
|
#18+
ZrenByну вот, перебил клиента Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.10.2005, 12:52 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=33314622&tid=2032643]: |
0ms |
get settings: |
8ms |
get forum list: |
11ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
59ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
49ms |
get tp. blocked users: |
2ms |
| others: | 251ms |
| total: | 393ms |

| 0 / 0 |
