<

Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

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

Posted on
3,175 Points
75 Views
1 Endorsement
Last Modified:
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
Comment
Author:Ian Ma
1 Comment
 
LVL 29

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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month