13.07.2015 Views

BABAR C++ Course Running the Examples - HEPHY

BABAR C++ Course Running the Examples - HEPHY

BABAR C++ Course Running the Examples - HEPHY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>C++</strong> Input and OutputMore on I/OIntroduce I/O early, so we can run programs fromshell and see something happen :-)Example (ch2/regurgiate.C)#include // preprocessor commandint main() {// Read and print three floating point numbersfloat a, b, c;cin >> a >> b >> c; // input// outputcout

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

Saved successfully!

Ooh no, something went wrong!