17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Functional Overview<br />

variables/constants: May be any integer, char, float or fixed type. Char arrays are<br />

output as strings and all other types are output as an address of the variable.<br />

manipulators:<br />

hex -Hex format numbers<br />

dec- Decimal format numbers (default)<br />

setprecision(x) -Set number of places after the decimal point<br />

setw(x) -Set total number of characters output for numbers<br />

boolalpha- Output int1 as true and false<br />

noboolalpha -Output int1 as 1 and 0 (default)<br />

fixed Floats- in decimal format (default)<br />

scientific Floats- use E notation<br />

iosdefault- All manipulators to default settings<br />

endl -Output CR/LF<br />

ends- Outputs a null ('\000')<br />

Examples: cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!