Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
programming:howtos-tips [2009/06/24 13:37] cyril |
programming:howtos-tips [2014/04/16 18:07] cyril [Conversions with string] |
||
---|---|---|---|
Line 117: | Line 117: | ||
<code cpp> | <code cpp> | ||
- | std::cout << " | + | std::cout << " |
- | << " | + | << " |
<< " | << " | ||
</ | </ | ||
Line 182: | Line 182: | ||
<code c> | <code c> | ||
#define ERROR(msg, ...) fprintf(" | #define ERROR(msg, ...) fprintf(" | ||
+ | </ | ||
+ | You can also use the '' | ||
+ | < | ||
+ | #define ERROR(msg, ...) fprintf(" | ||
</ | </ | ||
Line 206: | Line 210: | ||
#include < | #include < | ||
char s[128]; | char s[128]; | ||
- | sprintf(" | + | sprintf(s, " |
</ | </ | ||
Line 321: | Line 325: | ||
| | ||
... | ... | ||
- | double() { return data / (double)(1<< | + | |
}; | }; | ||