Sign in to follow this  
nlbs

why forward declaration

Recommended Posts

nlbs    100
I've a file called var.h and I've class Var n it. when I am doing #include "var.h" Its not throwing any compilation errors. but saying Var undecleared. If I just do a forward Declearation without #include Directive Its also firing some other errors. However when I do both #include and forward declaration it compiles. No my question is why !!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this