Jump to content

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


carter

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)?

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...