If you want to use std::string
reliably, you must #include <string>
.
More Related Contents:
- How to open an application through C++? [closed]
- What it is the meaning of this error: conversion from ‘char* [40] to non-scalar type ‘std::string
- What should main() return in C and C++?
- What are copy elision and return value optimization?
- In what cases do I use malloc and/or new?
- Is cout synchronized/thread-safe?
- Why can’t the template argument be deduced when it is used as template parameter to another template?
- What are the mechanics of short string optimization in libc++?
- How to determine the version of the C++ standard used by the compiler?
- Dynamically load a function from a DLL
- Is local static variable initialization thread-safe in C++11? [duplicate]
- How to return local array in C++?
- Dealing with accuracy problems in floating-point numbers
- Why pow(10,5) = 9,999 in C++
- Explicit template instantiation – when is it used?
- error LNK2038: mismatch detected for ‘_MSC_VER’: value ‘1600’ doesn’t match value ‘1700’ in CppFile1.obj
- How to Detect the Number of Physical Processors / Cores on Windows, Mac and Linux
- How can I store objects of differing types in a C++ container?
- Mixing debug and release library/binary – bad practice?
- What are the distinctions between the various symbols (*,&, etc) combined with parameters? [duplicate]
- Get index of a tuple element’s type?
- Why are forward declarations necessary? [duplicate]
- Why I can access member functions even after the object was deleted?
- Can I use boost library for crossplatform application executing?
- “undefined reference to” using ‘g++’ to compile a C++ program
- How to make a function return a pointer to a function? (C++)
- What are use cases for structured bindings?
- Passing a pointer to a class member function as a parameter
- Why can’t std::function bind to C-style variadic functions?
- How to count clock cycles with RDTSC in GCC x86? [duplicate]