Archive Page 2

I rely on these websites when it comes to designing websites. So, this is a time for me to share them with you. Hope it is useful.

Graphics & Stock Photos

Showing off: UQ

06Nov06

The University of Queensland, Brisbane, Australia.

uq.jpg

Brought to you by Flash Earth.

I/O in C++

01Nov06

Out of three programming languages that I’ve learnt, C++ has the simplest way to handle the I/O (input/output). I’m trying to demostrate how to write a program that reads doubles from a file, performs addition of those numbers, and print the results to stdout (standard output).

C++ has useful ifstream and fstream classes that provide a stream interface to read and write data from/to files. The difference between both classes is, ifstream can only be used for reading, while fstream can be used for both reading and writing. Since we’re only going to read the files, we better use ifstream class.


You are currently browsing the The Geek @ amellie.net weblog archives.