#include <vector>
is a must when you use vector
.
using std::vector;
is optional as this saves you from typing std::
when declaring a vector for example.
vector<int> v; // no need prefix std::
More Related Contents:
- Using includes with c++ shared libraries
- What is the difference between #include and #include “filename”?
- C++ #include guards
- Displaying the #include hierarchy for a C++ file in Visual Studio
- Detecting superfluous #includes in C/C++?
- Eclipse CDT: Symbol ‘cout’ could not be resolved
- Include header files using command line option?
- How should I detect unnecessary #include files in a large C++ project?
- Headers Including Each Other in C++
- Should I include or in C++ programs?
- Is it a good idea to wrap an #include in a namespace block?
- C++ Header order [closed]
- C/C++, can you #include a file into a string literal? [duplicate]
- How to tell where a header file is included from?
- Circular C++ Header Includes
- How to define several include path in Makefile
- When can you omit the file extension in an #include directive?
- Difference between using #include and #include in C++
- When is #include library required in C++?
- Include all files in a directory?
- How can I avoid including class implementation files?
- Is the backslash acceptable in C and C++ #include directives?
- Do I have to use #include beside ?
- How does #include work in C++?
- cmath vs math.h (And similar c-prefixed vs .h extension headers)
- Generate include file name in a macro
- Function already defined error in C++
- #include absolute path syntax in c/c++
- Do you know tool building tree of include files in project\file?
- compiler cannot recognize my class in c++ – cyclic dependency