background preloader

C++

Facebook Twitter

Google C++ Style Guide. Definition: Streams are a replacement for printf() and scanf().

Google C++ Style Guide

Pros: With streams, you do not need to know the type of the object you are printing. You do not have problems with format strings not matching the argument list. (Though with gcc, you do not have that problem with printf either.) Streams have automatic constructors and destructors that open and close the relevant files. Cons: Streams make it difficult to do functionality like pread(). JSON Data Binding with JSON Spirit. Doc/html/boost_asio/example/echo/blocking_tcp_echo_server.cpp - Boost 1.38. Doc/html/boost_asio/example/socks4/sync_client.cpp - Boost 1.38.