Book a Demo

Author Topic: How to #include? eg. #include iostream.h  (Read 3567 times)

smartjoe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to #include? eg. #include iostream.h
« on: January 13, 2011, 12:07:47 pm »
Hi,

Hopefully a simple question for somebody. The title sums it up.
Would prefer not to type it and do "synchronize code-reverse engineer".

Thanks.

smartjoe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to #include? eg. #include iostream.h
« Reply #1 on: January 13, 2011, 02:14:52 pm »
Ok, got this one.

1) In the Project Browser, expand the tree till you see a class.
2) Right-click that class and choose "Generate Code".
3) here there is a box in which one can enter header files etc.


I do still have one problem with this; it includes iostream fine, but it does not include another .h file that I want to include. figured it out. You must type the full #include "myFile.h" for each header.
« Last Edit: January 14, 2011, 06:22:18 am by smartjoe »

smartjoe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to #include? eg. #include iostream.h
« Reply #2 on: January 13, 2011, 05:21:32 pm »
This answers a lot of questions.

http://www.network-theory.co.uk/docs/gccintro/gccintro_22.html

Java and C# suddenly seem like a walk in the park...in a baby stroller.