As you guys might have guessed form the threads name, I have a few questions that am going to post under one thread because i don't want to stuff the front page...thanks in advance.
1. Why are function prototypes mostly declared before the main(), but the actual function is under the main()?
Example:
int FindArea(int length, int width);
int main()
{
some code...
}
int FindArea(int length, int width)
{
function code...
}
2. When passing a value to a function why wont this work:
string fileName = "text.txt";
infile.open(fileName);
3. Can the solution for this be used in any other function?
4. Would advanced C++ make a strong foundation for learning other languages?