java package and c++ header files

What is the difference between importing java package and including header files in c++?
[95 byte] By [869817sharath_priyaa] at [2007-11-26 12:18:21]
# 1
Please keep your import discussions to your first post.
642814zadoka at 2007-7-7 14:57:47 > top of Java-index,Archived Forums,Socket Programming...
# 2
Fully different. No comparability.Right?
610567john60a at 2007-7-7 14:57:47 > top of Java-index,Archived Forums,Socket Programming...
# 3

I do not know .. have been away from C/C++ for a long time...

As much as I remember you can only import one header file each time... also when you import a header file you can just call methods from the header file automatically ...

However I could be very wrong on this .. really lost touch from C/C++ ...

regards,

Sim085

468685sim085a at 2007-7-7 14:57:47 > top of Java-index,Archived Forums,Socket Programming...
# 4

#include == Simple file include preprocessing instruction.

import ; == Tells the compiler to check package X when it comes across a class not in the current package. Sort of like add stuff to your "PATH" variable.

Header Files: A description of a class.

Import: See above

The two are completely unrelated.

137256mlka at 2007-7-7 14:57:47 > top of Java-index,Archived Forums,Socket Programming...