Jump to content
carter

Is that mandatory to use systemc what saperate .h and .cpp

Recommended Posts

Hi

Some books introducing systemc have .h and .cpp.

But i'm not sure about this activities.

So Is that mandatory to use systemc what saperate .h and .cpp?

If i use class, is this need too?

Also i have question onemore.

what are you first make between .h and .cpp?

Is there any way what make 1 file(.cpp) not (.h and .cpp)?

Share this post


Link to post
Share on other sites

Well, that is the good enough from the point of readability and understanding, as .h gives u the whole class information like all the data members u have and all the member function declaration etc.

 

It helps in large files, where you need to understand the class nature and explore the particular function as per requirement, unless u have to scroll through the whole file.

 

As Alan said ,yes u can keep everything in a single .cpp.

 

Regards,

Karandeep

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

×