<

Watch Introduction to C++: Vectors - Clearing and Detecting Empty Vectors

Posted on
3,202 Points
102 Views
1 Endorsement
Last Modified:
Published
Experience Level: Beginner
5:12
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
1
Author:Ian Ma
1 Comment
LVL 31

Expert Comment

by:pepr
I suggest to switch to Visual Studio 2013, and start with the C++11 features. They make C++ much nicer also for beginners.

Related to the presentation, a vector initializer can be used, the new form of the for loop can be used (no hardwired numbers needed).
0
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This article is about the variadic template, which often is implemented in a way the compiler has to recurse through function calls and to create unneeded function. There's a way to avoid compile-time recursion using std::initializer_list.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month