First off, I have searched for this. Honest. I can't find anything on google for it.
Second, do you guys know a good reference for standard header files and the C++ standard library?
Here's the real question. I'm just beginning in C++ and I'm trying to write a program that will take text files and cut them up into smaller pieces around 4kb in size for the iPod. I've tried it in Java and it's ugly. Now, I have declared an input file stream (ifstream inFile) but when I compile what I have so far, I get this error:
CODE
error: aggregate ‘std::ifstream inFile’ has incomplete type and cannot be defined
I don't know why I'm getting this and I'm following the "Opening a file" section of
this tutorial.
Thanks guys.
PS: This is I have a question about int main(). Now, I know you guys might laugh at this selection, but I've just finished C++ for Dummies. Almost every declaration of main is like this:
CODE
int main(int nNumberofArgs, char* pszArgs[])
What's the reason of passing in a pointer at main rather than just a variable?
If char* was declared as char&, that makes it a reference, right?