FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    A rush code using a #include operation

     

    There is a small partner sent a picture similar to the following picture in our embedded exchange group. I suddenly caused a mistake, I attached the source code, Main.c is as follows: #include "stdio.h" #include "string.h" Static char city_name [] [20] = { #include "city.h" } INT main (void) { Printf ("% s", city_name [0]); } City.h is as follows: "Beijing", "Shanghai", "Guangzhou" The place where this code is in the array of code is in the array in the C language, I use a #include's operation, I have been so big for the first time. However, a small partner said that he was not satisfied, he immediately compiled a piece on his computer, and it was not compiled. He also sticked his code. Where is the problem? See here, you can pause for 10 seconds and think about the reason. Later, the classmates found a question. The problem is that #include "city.h" must be alone. Then there is another problem, why do you have to start a line alone? To this end, I took out the "C and pointer" books that fell a layer of gray, and I didn't find a description. Finally, I found a person's answer on Google: # Must be the first non-air character in a row, that is, it can have spaces, but there is no other characters. This question first reported this. Later, the president of the group made questions. He thinks this city.h does not conform to the C rules. Just look at it is like this, the general header file is not written, but in fact, no one specifies how the header should write, as long as the included C file It can be in compliance with grammar rules. The files included in the #include are not necessarily a file that suffix .h, what suffix format can be. It is also advantageous to use the above method to make it easy to update array content, intuitive. Also if you compile with GCC, GCC uses the -e parameter to help you expand macros definitions and header files. Finally, the president said: Graduation to find a job, proficient in C language; two years later, master C language; five years later, understand the C language. I found a resume that I found my work in 2013. He said yes, my first one is written by proficiency C language programming. Full text. Original title: a Coquetless C language operation Article Source: [WeChat public number: FPGA Home] Welcome to add attention! Please indicate the source of the article. Editor in charge: HAQ, read full article, original title: a Coquetless C language operation Article Source: [Micro Signal: Zhuyandz, WeChat public number: Zhilian Development Arduino] Welcome to add attention! Please indicate the source of the article.

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us