>I was wondering how many classes are in the Microsoft Foundation Class
Several hundred I believe, but I'm not too familiar with MFC.
>what does "using namespace std" mean?
Namespaces were added to C++ to help in encapsulation, if you currently use the old C++ header <iostream.h> then you probably aren't familiar with namespaces. The current C++ standard recommends the use of the header file <iostream> and using namepace std; simply makes programming a bit easier for the smaller stuff. For example:
Code:
#include <iostream.h>
int main()
{
cout<<"Something"; // This works
return 0;
}
Code:
#include <iostream>
int main()
{
cout<<"Something"; // This doesn't, cout is undeclared
std :: cout<<"Something"; // This works
/* You have to use the scope operator to tell the compiler
** where to find cout when you use new C++
*/
return 0;
}
Code:
#include <iostream>
using namespace std;
/* The using command will tell the compiler that
** the default namespace is whatever you give it.
** In this case, the standard namespace
*/
int main()
{
cout<<"Something"; // This works, the default namespace is std
return 0;
}
>Thanks for defending me you guys
You'll find that most of us are here to help and any flamers who show up trying to cause trouble will get shredded.
-Prelude