C++ is one of the most common, and most important languages in use. For applications where speed is critical, C++ is often the best option. Since it is compiled in to machine language — unlike Java and .net languages which are interpreted — it runs extremely fast. C++ is often the top choice for creating video games and other graphic intensive applications.
In this first tutorial from the Learn C++ on the Mac series, Mark will review the basics of creating C++ applications on the Mac using XCode.
main.cpp:
#include <iostream> //First program in C++ for Mac course int main() /* Main written by Mark Lassoff LearnToProgram.tv */ { std::cout << "Hello world from LearnToProgram.tv"<<std::endl; std::cout << "I am glad you are learning C++"; return 0; }



I can’t compile or run my project on window vista.
these are the errors; Source file not compiled. Even after I do compile file I get the same message. Then I tried opening the saved file from its saved location it gives me this error; Following C++ Include directories don’t exist; lib\gcc\mingw32\3.4.2\includ
I figured it out. On windows vista you have to save it under .cpp then only then I was able to compile and run.
Spread the word.
Even after I save it under .cpp extension, it still is giving me the same error, i.e. “Source File not compiled”.
I use Windows 7 and Dev-C++.