How to code memory diagram??

I was asked to code this memory diagram: I was also given this struct: struct product { char *name; dou...

How to initialize an array of struct in C++??

I have the following struct in my C++ code (I am using Visual Studio 2010): struct mydata { string scientist; ...

how to make a function body repeat in c?

So I am making this program and I am almost done. However, before I finish I need to make a body function repeat n t...

Define a struct inside a class in C++?

Can someone give me an example about how to define a new type of struct in a class in C++. Thanks. ...