26.09.2015 Views

PROGRAMSKI JEZICI 2

Предавање 1

Предавање 1

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

Whitespace eater- “gutač praznina”<br />

• “Gutač praznina” (engl. c ili whitespace extractor), je u jeziku C++ imenovan<br />

prosto imenom “ws”.<br />

• Drugim rečima, nakon izvršenja izraza poput “cin >> ws” eventualne praznine sa<br />

početka ulaznog toka biće uklonjene.<br />

int broj;<br />

char tekst[100];<br />

cout > broj >> ws;<br />

cout

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

Saved successfully!

Ooh no, something went wrong!