<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPCXpresso IDE中的主题 Re: const char</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592557#M30055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jlara on Thu Feb 03 15:03:21 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Each character in a string is an ASCII code representing the number.&amp;nbsp; For the letters, only one byte is needed.&amp;nbsp; For the numbers, each digit needs its own byte.&amp;nbsp; 18 is not going to be enough.&amp;nbsp; What exactly are you trying to do?&amp;nbsp; If I know the end result, I will be able to help better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:49:01 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:49:01Z</dc:date>
    <item>
      <title>const char</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592556#M30054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Thu Feb 03 08:05:07 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1758 with LPCXPresso&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I define a string + number like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; const char Driver [18]= "ABCDEFGHILMN",{18,03,20,11,15,55};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592556#M30054</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: const char</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592557#M30055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jlara on Thu Feb 03 15:03:21 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Each character in a string is an ASCII code representing the number.&amp;nbsp; For the letters, only one byte is needed.&amp;nbsp; For the numbers, each digit needs its own byte.&amp;nbsp; 18 is not going to be enough.&amp;nbsp; What exactly are you trying to do?&amp;nbsp; If I know the end result, I will be able to help better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592557#M30055</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: const char</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592558#M30056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Fri Feb 04 00:31:04 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: blasiis&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;How can I define a string + number like this:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; const char Driver [18]= "ABCDEFGHILMN",{18,03,20,11,15,55};&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect that the compiler sees this as you trying to assign a two dimensional array (the string as one, the numbers as another) to your single dimensional Driver array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this instead...&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;const char Driver [19]= {'A','B','C','D','E','F','G','H','I','L','M','N',0,18,03,20,11,15,55};&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:49:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592558#M30056</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: const char</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592559#M30057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Fri Feb 04 03:53:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello blasiis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do not forget the '0' between the [B]'N'[/B] and the [B]18[/B] ... and the increase of the amount of array cells from 18 to 19.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:49:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592559#M30057</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: const char</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592560#M30058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri Feb 04 06:59:30 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying with 19 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const char Driver [19]= = "ABCDEFGHILMN",{18,03,20,11,15,55};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the error expected identifier or '(' before '{' token&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think itisn't possible !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:49:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592560#M30058</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: const char</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592561#M30059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Feb 04 07:30:43 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible, and already posted by CodeRedSupport :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;const char Driver []= {'A','B','C','E','F','G','H','I','L','M','N',18,03,20,11,15,55};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Watch Expression shows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"ABCEFGHILMN\022\003\024\v\017\067"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That's your string and your numbers (octal) :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:49:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592561#M30059</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: const char</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592562#M30060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Mon Feb 07 00:45:26 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;"ABCEFGHILMN\022\003\024\v\017\067"&lt;BR /&gt; &lt;BR /&gt;That's your string and your numbers (octal) :)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why it is in octal format ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I use a hex format ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592562#M30060</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: const char</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592563#M30061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Mon Feb 07 01:52:05 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't know why strings in 'Expressions' are displayed octal, if they are not displayable as character set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At the left side you can display your array in hex format, see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/DefaultDisplayFormats&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/const-char/m-p/592563#M30061</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:49:05Z</dc:date>
    </item>
  </channel>
</rss>

