Tired of the manual coding required by your bulk I/O operations? Learn how using stream iterators can help you do away with this tedious choreas well as improve your apps' design and performance.
Standard C++ doesn't specify the initialization order of objects with static storage type. Using the accessor function will ensure that objects in separately compiled files are constructed in the correct order.
Typedef declarations help create platform-independent types and can even hide complex or unintelligible syntax. Predictably, however, using typedef comes with its own set of surprises. Learn how to navigate these pitfalls and use typedef to clean up your code.
These days, it pays to be string-savvy. Along with text processors, spellcheckers, and IDEs, new Web-oriented applications also make heavy use of strings for generating text, processing clients' requests, processing scripts, and logging. Find out how to use the specialized algorithms of class std::string to implement some common string-oriented tasks.
When you share data among users via a file, you put down the welcome mat for versioning problems, or worse, a security breach. Solve this problem using a simple design pattern.
C++ doesn't initialize automatic variables for you, and if you're unfamiliar with the right syntax or aggregate initialization, you can misuse important library functionsor you might be tempted to skip initialization altogether. Avoid creating unnecessary performance overhead, future maintenance problems, and potential bugs by learning how to correctly initialize data on your own.
Though the Standard Template Library offers a generic swap() algorithm, there are several other implementations from which to choose. Which implementation best suits your program's needs? This month's solution shows you how to evaluate each of them, enabling you to utilize each implementation to its greatest benefit.
Instead of relying on cin to validate input, read the input as a string and then check it. If the string passes the test, convert it to the desired type, say int or double.
How do you avoid the unnecessary drudgery of writing a linked list from scratch while benefiting from a generic, efficient and portable list data structure?
In this 10-Minute Solution, Danny Kalev shows you how to implement persistence without resorting to third-party frameworks such as DCOM and CORBA.