New course! Every coder should learn Generative AI!
Try a free lesson+ 4
You need to use an escape sequence to insert single or double quotes into a string, i.e. a '\' followed by the character you want to insert. For example, this is what your showdist() method could look like:
void showdist()
{
cout << feet << "\' - " << inches << '\"';
}
Escape Sequences:
https://en.cppreference.com/w/cpp/language/escape
+ 2
+ 1
Aysha [Left] Welcome 👍.