Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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