background preloader

IT

Facebook Twitter

Exabytes Singapore - Web Hosting Singapore, Email Hosting Singapore, Dedicated Server Singapore, Domain Name Singapore. Innovation Works | 创新工场. Google C++ Style Guide. Definition: Streams are a replacement for printf() and scanf(). 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(). Some formatting (particularly the common format string idiom %. *s) is difficult if not impossible to do efficiently using streams without using printf-like hacks.

Decision: Do not use streams, except where required by a logging interface. There are various pros and cons to using streams, but in this case, as in many other cases, consistency trumps the debate. Extended Discussion There has been debate on this issue, so this explains the reasoning in greater depth. Cout << this; // Prints the address cout << *this; // Prints the contents.

Costs of Cloud : Comparison. iPhone|iPod Touch|iPad 软件游戏分享 - Pockoo.com|博酷网 - 论坛. FontStruct | Build, Share, Download Fonts. TechCrunch. Dynamic Drive DHTML(dynamic html) & JavaScript code library. Silicon Valley Watcher - at the intersection of technology and media.

Engadget.