Sololearn: Learn to Code
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
28th Feb 2021, 10:53 AM
Shadow
Shadow - avatar
28th Feb 2021, 10:54 AM
Mohammed Qadir khan
Mohammed Qadir khan - avatar
+ 1
Aysha [Left] Welcome 👍.
28th Feb 2021, 11:39 AM
Mohammed Qadir khan
Mohammed Qadir khan - avatar