Mar 30, 2013 Easy Programming - Beginner C Tutorial - Using Header Files (.h Files) (26) - Duration: 5:48. Nazmus Nasir 35,619 views. Jun 27, 2010 Dev-C's C compilation settings do not include the C backward compatibility directory (for obvious reasons), and, and even if it did the iostream.h header file would not compile as C code. If you are writing C code, name your file with the.cpp extension. Sets the field width to be used on output operations. Behaves as if member width were called with n as argument on the stream on which it is inserted/extracted as a manipulator (it can be inserted/extracted on input streams or output streams).
-->Header files for the C++ standard library and extensions, by category.
Headers by category
Category | Headers |
---|---|
Algorithms | <algorithm>, <cstdlib>, <numeric> |
Atomic operations | <atomic>11 |
C library wrappers | <cassert>, <ccomplex>11 a b, <cctype>, <cerrno>, <cfenv>11, <cfloat>, <cinttypes>11, <ciso646>b, <climits>, <clocale>, <cmath>, <csetjmp>, <csignal>, <cstdalign>11 a b, <cstdarg>, <cstdbool>11 a b, <cstddef>, <cstdint>11, <cstdio>, <cstdlib>, <cstring>, <ctgmath>11 a b, <ctime>, <cuchar>11, <cwchar>, <cwctype> |
Concepts | <concepts>20 |
Containers | |
Sequence containers | <array>11, <deque>, <forward_list>11, <list>, <vector> |
Ordered associative containers | <map>, <set> |
Unordered associative containers | <unordered_map>11, <unordered_set>11 |
Container adaptors | <queue>, <stack> |
Container views | <span>20 |
Errors and exception handling | <cassert>, <exception>, <stdexcept>, <system_error>11 |
General utilities | <any>17, <bitset>, <charconv>17, <cstdlib>, <execution>17, <functional>, <memory>, <memory_resource>17, <optional>17, <ratio>11, <scoped_allocator>11, <tuple>11, <type_traits>11, <typeindex>11, <utility>, <variant>17 |
I/O and formatting | <cinttypes>11, <cstdio>, <filesystem>17, <fstream>, <iomanip>, <ios>, <iosfwd>, <iostream>, <istream>, <ostream>, <sstream>, <streambuf>, <strstream>c, <syncstream>20 |
Iterators | <iterator> |
Language support | <cfloat>, <climits>, <codecvt>11 a, <compare>20, <contract>20, <coroutine>20, <csetjmp>, <csignal>, <cstdarg>, <cstddef>, <cstdint>11, <cstdlib>, <exception>, <initializer_list>11, <limits>, <new>, <typeinfo>, <version>20 |
Localization | <clocale>, <codecvt>11 a, <cvt/wbuffer>, <cvt/wstring>, <locale> |
Math and numerics | <bit>20, <cfenv>11, <cmath>, <complex>, <cstdlib>, <limits>, <numeric>, <random>11, <ratio>11, <valarray> |
Memory management | <allocators>, <memory>, <memory_resource>17, <new>, <scoped_allocator>11 |
Multithreading | <atomic>11, <condition_variable>11, <future>11, <mutex>11, <shared_mutex>14, <thread>11 |
Ranges | <ranges>20 |
Regular expressions | <regex>11 |
Strings and character data | <cctype>, <cstdlib>, <cstring>, <cuchar>11, <cwchar>, <cwctype>, <regex>11, <string>, <string_view>17 |
Time | <chrono>11, <ctime> |
11 Added in the C++11 standard.
14 Added in the C++14 standard.
17 Added in the C++17 standard.
20 Added in the draft C++20 standard.
a Deprecated in the C++17 standard.
b Removed in the draft C++20 standard.
c Deprecated in the C++98 standard.
List Of C Header Files
Category | Headers |
---|---|
Algorithms | <algorithm> |
C library wrappers | <cassert>, <cctype>, <cerrno>, <cfenv>, <cfloat>, <cinttypes>, <ciso646>, <climits>, <clocale>, <cmath>, <csetjmp>, <csignal>, <cstdarg>, <cstdbool>, <cstddef>, <cstdint>, <cstdio>, <cstdlib>, <cstring>, <ctgmath>, <ctime>, <cwchar>, <cwctype> |
Containers | |
Sequence containers | <array>, <deque>, <forward_list>, <list>, <vector> |
Ordered associative containers | <map>, <set> |
Unordered associative containers | <unordered_map>, <unordered_set> |
Adaptor containers | <queue>, <stack> |
Errors and exception handling | <exception>, <stdexcept>, <system_error> |
I/O and formatting | <filesystem>, <fstream>, <iomanip>, <ios>, <iosfwd>, <iostream>, <istream>, <ostream>, <sstream>, <streambuf>, <strstream> |
Iterators | <iterator> |
Localization | <codecvt>, <cvt/wbuffer>, <cvt/wstring>, <locale> |
Math and numerics | <complex>, <limits>, <numeric>, <random>, <ratio>, <valarray> |
Memory Management | <allocators>, <memory>, <new>, <scoped_allocator> |
Multithreading | <atomic>, <condition_variable>, <future>, <mutex>, <shared_mutex>, <thread> |
Other utilities | <bitset>, <chrono>, <functional>, <initializer_list>, <tuple>, <type_traits>, <typeinfo>, <typeindex>, <utility> |
Strings and character data | <regex>, <string>, <string_view> |
See also
Header File For Cout In Dev C 4
C++ Header File Example
Using C++ library headers
C++ standard library