You need to include
#include <string>
#include <iostream>
More Related Contents:
- Why does streaming a char pointer to cout not print an address?
- What is the most efficient C++ method to split a string based on a particular delimiter similar to split method in python? [closed]
- Why when i add number to string it shows random text in c++?
- Converting std::__cxx11::string to std::string
- Is a string literal in С++ created in static memory?
- How to print Unicode character in C++?
- Will std::string always be null-terminated in C++11?
- What’s the rationale for null terminated strings?
- Sizeof string literal
- how do I print an unsigned char as hex in c++ using ostream?
- std::cout won’t print
- Why can’t I write to a string literal while I *can* write to a string object?
- How to get the number of characters in a std::string?
- How to cout a float number with n decimal places [duplicate]
- C++ convert integer to string at compile time
- When does cout flush?
- sizeof in c++ showing string size one less
- Why does calling std::string.c_str() on a function that returns a string not work?
- Convert double to string C++? [duplicate]
- variable or field declared void
- How can I make the map::find operation case insensitive?
- When did C++ compilers start considering more than two hex digits in string literal character escapes?
- equivalent of Console.ReadLine() in c++
- What is the simplest way to convert char[] to/from tchar[] in C/C++(ms)?
- How to write an object to file in C++
- Memory-efficient C++ strings (interning, ropes, copy-on-write, etc) [closed]
- converting narrow string to wide string
- How to convert int to string in C++
- What’s the difference between istringstream, ostringstream and stringstream? / Why not use stringstream in every case?
- Assign a string literal to a char* [duplicate]