i need help with inserting double quotation marks for string .
when i enter movie name . the movie name needs to show up in quotation marks. such as
"Death Grip".
A very good way to get the movie name surrounded by quotation marks, you can use quoted, like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <iostream>
using std::cout;
#include <iomanip>
using std::quoted;
using std::left;
using std::setw;
#include <string>
using std::string;
int main()
{
string movieName = "Vaganova Ballet Academy - The Nutcracker Performance";
cout << setw(29) << left << "Movie Name: " << quoted(movieName) << std::endl;
return 0;
}
To get an output, you have to change your code. First comes the input, then the output. ;-)