Friday, May 21, 2010

Is Visual C++ any different from C++ in general?

After looking at a C++ tutorial on the net, and Visual studio C++ 2008's tutorials, it appears that the two tutorials have two quite different ways of saying "Hello World". Is Visual C++ in the visual studio something different from the C++ programming language?

Is Visual C++ any different from C++ in general?
Visual C++ is an IDE/compiler tailored for creating Windows applications with the C++ programming language. It comes with many libraries for interacting with Windows, and programming with it generally favors using these libraries heavily. C++ is a general purpose programming language for creating apps of any kind. The basic syntax of the two are the same though.
Reply:Visual C++ is Microsoft's C++ IDE/compiler for C++ on Windows. Visual C++ is not a different language. There is something called ANSI C++, which a standard for the C++ language. Visual C++ is ANSI C++ compliant, so any C++ examples you find, will work in Visual Studio. The VC++ tutorials may be using precompiled headers, so the includes may look different. The IDE is designed for the professional programmer, so it tries to make some tasks easier. If you want to compile an example the best way is to do a Win32 console application and click Empty Project and uncheck "Use precompiled headers"
Reply:C++ hello world uses the console interface.


No graphics, just basic text.


so


cout %26lt;%26lt; "Hello World" %26lt;%26lt; endl;


will be output on the console window.


Visual C++ adds some bells and whistle to C++ so it supposedly makes it better and 'nicer'.
Reply:i like to know also.


No comments:

Post a Comment