Jump to content

How to initialize a char array with double quotes (not printable escape characters) in C++


Recommended Posts

Guest Derek Todd
Posted

Hi,I am trying to initialize a character array with double quotes inside of the array. I am never going to print the array out, so I do not need the printable escape characcter \". I want to be able to read and compare the double quote inside of the array in the program. Is there a way to do this. The char array is very large so initializing the char array like this will not work:char hello[6] = { 'h', 'e', 'l', 'l', 'o', '/0' };Here is a small portion of the character array I am trying to initialize: char BankgothicFont[] = {"char id = "39" x =

 

More...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...