Just through trial and error I finally got it to work, but it's not satisfying since I don't really understand why I needed to change what I did. I had to change it from this
Thing *...
Type: Posts; User: Ace Rockolla
Just through trial and error I finally got it to work, but it's not satisfying since I don't really understand why I needed to change what I did. I had to change it from this
Thing *...
oh yea my bad, it's supposed to be "expected" not "unexpected." Thanks for the replies, I don't want to post the whole code just because it's a school assignment.
Aisthesis - what do you mean by...
I've been working on writing a program for school literally all day and I'm getting one error when I try to compile it that I can't figure out. The error I'm getting is "error: expected constructor,...
If I have two separate files for a class (a header file and a file containing all the member function definitions), and in the header file I have something like this:
#include<iostream>...
thanks, that helped a lot. So does the const in the second one even do anything? if it's just passing the pointer by value (making the local variable a copy of the pointer being passed), you don't...
I'm new to C++ and have looked around for the answer to this seemingly simple question but can't seem to find it. Can someone please explain to me the difference between a function that looks like...