Writing a range-for loop in a container on Microsoft visual studios 2022

#1
Ostronomos Offline
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?
Reply
#2
Syne Offline
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tesla AI Day 2022 Yazata 31 4,083 Oct 5, 2025 05:32 PM
Last Post: Syne
  Research Testng advanced AI: How good is it at solving visual puzzles & abstract reasoning? C C 0 411 Oct 10, 2024 04:00 AM
Last Post: C C
  Article The surprisingly subtle ways Microsoft Word has changed how we use language C C 0 293 Nov 2, 2023 01:36 AM
Last Post: C C
  Article AI: ChatGPT can outperform university students at writing assignments C C 5 866 Aug 25, 2023 09:31 PM
Last Post: confused2
  “Please slow down”—The 7 biggest AI stories of 2022 C C 2 555 Dec 31, 2022 11:11 PM
Last Post: C C
  The Top 10 Robotics Stories of 2022 C C 0 315 Dec 30, 2022 03:49 PM
Last Post: C C
  Do (artificial) neural networks dream visual illusions? C C 2 727 Dec 16, 2020 06:45 PM
Last Post: C C
  Microsoft Announces Tool To Catch Biased AI Because We Keep Making Biased AI C C 0 607 May 25, 2018 09:06 PM
Last Post: C C
  Microsoft shelves Feb security updates + Smartphone CPUs put desktops to shame + RF C C 0 525 Feb 15, 2017 06:28 AM
Last Post: C C
  AI beats humans on visual test + AI Consciousness - a reply to Schwizgebel C C 1 865 Feb 1, 2017 05:03 PM
Last Post: Ben the Donkey



Users browsing this thread: 1 Guest(s)