Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. query

query

Scheduled Pinned Locked Moved Managed C++/CLI
database
3 Posts 3 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 12885446
    wrote on last edited by
    #1

    can we use # sign at places other than with the header files

    J P 2 Replies Last reply
    0
    • U User 12885446

      can we use # sign at places other than with the header files

      J Offline
      J Offline
      Jon McKee
      wrote on last edited by
      #2

      Yes, you should have #include in your cpp as well. Other uses are the various #pragmas, #define, and is a part of preprocessor operators[^] Header files are simply to separate definition from implementation generally speaking. They aren't anything special as far as the language itself is concerned. EDIT: And preprocessor directives[^] in general, just to clarify.

      1 Reply Last reply
      0
      • U User 12885446

        can we use # sign at places other than with the header files

        P Offline
        P Offline
        Patrice T
        wrote on last edited by
        #3

        Member 12917984 wrote:

        can we use # sign at places other than with the header files

        The answer is YES, but the question do not really make sense. # is commonly used with conditional compilation #if, #elif, #else, and #endif. You should rather explain what you want to do with # Here is links to references books on C and C++ by the authors of the languages. Note than C is the ancestor of C++, so knowing C is always useful with C++. The C Programming Language - Wikipedia, the free encyclopedia[^] https://hassanolity.files.wordpress.com/2013/11/the_c_programming_language_2.pdf[^] http://www.ime.usp.br/~pf/Kernighan-Ritchie/C-Programming-Ebook.pdf[^] C++ Programing Language[^]

        Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups