0

here is my question
say I have a struct nodetype in the header file named linklist.h
there contains a struct constructor in the nodetype named nodetype(int, nodetype*)
how to I declare the code in the linklist.cpp?
do I do the same for class constructor or something different?

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by bigwhiteegg
0

Yes, it's the same. Structs and classes in C++ only differ by the default visibility of their elements (public for structs and private for classes).

0

Yes, it's the same. Structs and classes in C++ only differ by the default visibility of their elements (public for structs and private for classes).

great!
thanks for the clarification

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.