Visual C++ 與 C++ 有冇分別的 ?

2007-08-13 2:34 am
我上網成日都睇到有人話
Visual C++....
但有的只話 C++

請問...兩者有沒有分別 ?
更新1:

請問甚麼是 csdtio and STL ??? 同埋甚麼是 MFC and ATL ??? 可唔可以講d 例子 解釋下? thanks!

回答 (2)

2007-08-17 9:07 pm
✔ 最佳答案
C++ is a language.
Microsoft Visual C++ is a development environment for the C++ language. It includes a compiler, editor, debugger and much more.

The "flavour" of C++ accepted by VC has some Microsoft-specific extensions that may not be accepted by other compilers. Most compilers have such extensions.

Pretty much any C++ program that complies with the official ISO/ANSI C++ standard can be compiled by Visual C++ 2005.

=======================================================

cstdio - 佢係1個c library, 佢perform Input/Output operations
哩個library 係include左係c++度
平時用c++ ge時候, include左iosream就可以用cout黎print out 野係個screen度
如果include cstdio, 就可以用printf黎print out d野on the screen


STL - Standard Template Library
STL係用c++ ge template feature, 你可以將佢apply黎唔同 type度
而唔洗自己煩~
STL container 有 , , etc.....
而STL algorithm 就有sort, find, etc....


MFC - Microsoft Foundation Class Library
Classes are defined for many of the handle-managed Windows objects and also for predefined windows and common controls.
For Windows -based applications written in C++, MFC provides an enormous headstart

ATL - Active Template Library
a collection of template-based software routines that can be used to create ActiveX and COM objects in C++.

ATL facilitates component development by providing the following:

* Classes for handling data types such as interface pointers, VARIANTs, BSTRs and HWNDs.
* Classes that provide implementation of basic COM interfaces such as IUnknown, IClassFactory, IDispatch, etc.
* Classes for managing COM servers, that is, for exposing class objects, self-registration, and server lifetime management.
* Wizards to make COM development easier.
2007-08-13 6:50 pm
Basically, Visual C++ is a branch of C++, which developed by Micro$oft.

Visual C++ aims at providing an environment for developing program in Window OS. Thus, it not only provides the fundumental library like csdtio and STL, but also a visual GUI programming tools for GUI application. It also provide window-specific libraries like MFC and ATL. Thus, in some cases, we only refer to Visual C++ instead of C++.


收錄日期: 2021-04-23 17:10:50
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070812000051KK03877

檢視 Wayback Machine 備份