<?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>LPC MicrocontrollersのトピックRe: Define a class</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Define-a-class/m-p/634128#M24996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Guys.&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Dec 2016 19:37:29 GMT</pubDate>
    <dc:creator>thoret</dc:creator>
    <dc:date>2016-12-27T19:37:29Z</dc:date>
    <item>
      <title>Define a class</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Define-a-class/m-p/634125#M24993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to write a simply programm and I want to define a class linke:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class myclass{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directly I get an syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I bulid the project I get an error:&lt;/P&gt;&lt;P&gt;Multiple markers at this line&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- Syntax error&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- unknown type name 'myclass'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;- expected '=', ',', ';', 'asm' or '__attribute__' before &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; '{' token&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to write it in a .h file and a .c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I work with LPCxpresso 8.2.2_650&lt;/P&gt;&lt;P&gt;I try to implemented math.h but the error still exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think he dosn't know "class" but why? It is C syntax, isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 18:20:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Define-a-class/m-p/634125#M24993</guid>
      <dc:creator>thoret</dc:creator>
      <dc:date>2016-12-21T18:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Define a class</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Define-a-class/m-p/634126#M24994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Class is C++ and not C. In lpcxpresso you need to creat a C++ project and .cpp file for your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 13:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Define-a-class/m-p/634126#M24994</guid>
      <dc:creator>thefallguy</dc:creator>
      <dc:date>2016-12-23T13:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Define a class</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Define-a-class/m-p/634127#M24995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thore T,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fall Guy is correct, Class is the data type for C++, not for C, so if you want to use the class type, please create a C++ source file instead of C file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact me!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 02:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Define-a-class/m-p/634127#M24995</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-12-27T02:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Define a class</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Define-a-class/m-p/634128#M24996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Guys.&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 19:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Define-a-class/m-p/634128#M24996</guid>
      <dc:creator>thoret</dc:creator>
      <dc:date>2016-12-27T19:37:29Z</dc:date>
    </item>
  </channel>
</rss>

