This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How put a " and \ in a Sting[] (array)

 
Samuel Woodhams
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, (sorry if i should have put this in a different forum)

im making an array to contain the entire (basic) ASCII table. But i've hit a problem, when i want to have ethier " or \ in the array, the code won't compile!

so this was my work around



now this means i can add - speechmark and backslash - in the string and still get the same results, it just makes the code more bitty than it should be, i was just wonderring if there was a better way round this problem?

Thanks in advance

sam
 
Miklos Szeles
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Samuel,

The answer you need can be found here.
 
Samuel Woodhams
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats perfect thanks very much.

sam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic