How can I do Data Structs in C++? I know do it in C. Can I use Classes to do it?
Data StructsData Structs in C++
Page 1 of 1
2 Replies - 514 Views - Last Post: 12 July 2009 - 09:26 AM
Replies To: Data Structs
#2
Re: Data Structs
Posted 12 July 2009 - 09:19 AM
[rules][/rules]
Aside from that, please be more specific.
Aside from that, please be more specific.
This post has been edited by apw5020: 12 July 2009 - 09:20 AM
#3
Re: Data Structs
Posted 12 July 2009 - 09:26 AM
Quote
Aside from that, please be more specific.
At a high level, anything you can do in C you can do in C++ - in C++ a struct is just a spacial class with all elements public. So in general the answer might be: "Just as you did them in C -- but now you can encapsulate methods for manipulating the structure to within the class."
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|