This looks at lot like a template code that someone is asking you to modify without you having understood the parts.
I am not quite sure why you would want to output a double quote in real life as it is not a useful piece of information
but you want to show something
std::string str = "tetron";
cout << str;
This will output the word tetron
but you really want to add in an extra line and tell it to print at the
same time so you should use a special cout variable called endl;
There are a couple of points with the original code I am surprised
by there is a c-style main declaration reading in argv[] when you
don't need parameters and if you use endl; you can get rid of system.(pause);
#include <string> //words and sentences
#include <iosmtream> //cout & cin
void main()
{
//set the value of line as you initialise it
std::string line("I answered, \"no.\" Now the nest sentence.");
char to_find = '"';
//we want a special int to avoid awarning but just like int pos;
std::string::size_type number_of_letter_in_line(0), pos(0);
//you can cout a " by using << with to find
std::cout << to_find << std::endl;
//find() starts looking at a letter_number you give it
line.find(to_find, pos); //starts looking at I
std::cout << "found " << to_find << " at " << pos << std::endl;
//this will give you 0 if found which is wrong
pos = line.find(to_find, pos);
std::cout << "found " << to_find << " at " << pos << std::endl;
//now we have a new pos that is the location in the string
char quote = line[pos];
//to find the next quote you would need to advance pos
}
you should be able to use the rest of your code with this
the std:: are in place of using namespace std;