Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

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 19 549 Feb 25, 2024 06:46 AM
Last Post: Syne
  Article The surprisingly subtle ways Microsoft Word has changed how we use language C C 0 90 Nov 2, 2023 01:36 AM
Last Post: C C
  Article AI: ChatGPT can outperform university students at writing assignments C C 5 210 Aug 25, 2023 09:31 PM
Last Post: confused2
  “Please slow down”—The 7 biggest AI stories of 2022 C C 2 114 Dec 31, 2022 11:11 PM
Last Post: C C
  The Top 10 Robotics Stories of 2022 C C 0 82 Dec 30, 2022 03:49 PM
Last Post: C C
  Do (artificial) neural networks dream visual illusions? C C 2 258 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 402 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 333 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 573 Feb 1, 2017 05:03 PM
Last Post: Ben the Donkey



Users browsing this thread: 1 Guest(s)