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

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

Expert Comment

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).

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month