Ok, well that makes sense. Still learning how to code, as you can tell. =/
Now my issue is, does it have to go in the prototype? I like to seperate my prototype from my implementation code, unlike the example shown.
For example, I tried something like this, and its giving me a ton of...
Oh yeah, forgot to put the private data members in.
private:
int numCols;
Type* row;
So the row being referred to in my question above is a pointer, if that helps clarify. Is it checking if the pointer is NULL, and if so, what does it do if true/false, etc?
I've been looking at some sample code that is similar to a program I'm working on, and I came across a function prototype in the class header that threw me off. Can anyone here explain the syntax of this?
template<class Type>
class Row
{
public:
Row(int cols=0):row(NULL)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.