Scivillage.com Casual Discussion Science Forum
Writing a range-for loop in a container on Microsoft visual studios 2022 - Printable Version

+- Scivillage.com Casual Discussion Science Forum (https://www.scivillage.com)
+-- Forum: Science (https://www.scivillage.com/forum-61.html)
+--- Forum: Computer Sci., Programming & Intelligence (https://www.scivillage.com/forum-79.html)
+--- Thread: Writing a range-for loop in a container on Microsoft visual studios 2022 (/thread-12791.html)



Writing a range-for loop in a container on Microsoft visual studios 2022 - Ostronomos - Aug 30, 2022

I am struggling to make a successful attempt at transferring code involving a vector of strings that uses a range-for and an iterator to output paragraphs of information (aka strings) but the MVStudios 2022 is saying that I do not have the preprocessor variable correct even though I am using #define. What, am I doing wrong? And why doesn't the book translate to the program?


RE: Writing a range-for loop in a container on Microsoft visual studios 2022 - Syne - Aug 31, 2022

Is there a "#" in verbatim string? If so, that could be where the preprocessor error is coming from, and you can concatenate the string to avoid it.