`
universsky
  • 浏览: 96877 次
文章分类
社区版块
存档分类
最新评论

C++ Language FAQ

 
阅读更多

C++ Language FAQ

What is C++?
C++ is a programming language. It literally means "increased C", reflecting its nature as an evolution of the C language.
Is it necessary to already know another programming language before learning C++?
Not necessarily. C++ is a simple and clear language in its expressions. It is true that a piece of code written with C++ may be seen by a stranger of programming a bit more cryptic than some other languages due to the intensive use of special characters ({}[]*&!|...), but once one knows the meaning of such characters it can be even more schematic and clear than other languages that rely more on English words.
Also, the simplification of the input/output interface of C++ in comparison to C and the incorporation of the standard template library in the language, makes the communication and manipulation of data in a program written in C++ as simple as in other languages, without losing the power it offers.
How can I learn C++?
There are many ways. Depending on the time you have and your preferences. The language is taught in many types of academic forms throughout the world, and can also be learnt by oneself with the help of tutorials and books. The documentation section of this Website contains an online tutorial to help you achieve the objective of learning this language.
What is OOP: Object-oriented programming?
It is a programming model that treats programming from a perspective where each component is considered an object, with its own properties and methods, replacing or complementing structured programming paradigm, where the focus was on procedures and parameters.
Is C++ a proprietary language?
No. No one owns the C++ language. Anyone can use the language royalty-free.
What is ANSI-C++?
ANSI-C++ is the name by which the international ANSI/ISO standard for the C++ language is known. But before this standard was published, C++ was already widely used and therefore there is a lot of code out there written in pre-standard C++. Referring to ANSI-C++ explicitly differenciates it from pre-standard C++ code, which is incompatible in some ways.
How may I know if my compiler supports ANSI-C++?
The standard was published in 1998, followed by a revision in 2003. Some compilers older than the standard implement already some of its features, and many newer compilers don't implement all ANSI-C++ features. If you have doubts on whether your compiler will be able to compile ANSI-C++ code, you can try to compile a piece of code with some of the new features introduced mainly after the publication of the standard. For example, the following code fragment uses the bool type, and uses namespaces and templates.
1
2
3
4
5
6
7
8
9
#include <iostream>
using namespace std;
template <class T>
bool ansisupported (T x) { return true; }

int main() {
  if (ansisupported(0)) cout << "ANSI OK";
  return 0;
}
ANSI OK

If your compiler is able to compile this program, you will be able to compile most of the existing ANSI-C++ code.
How can I make windowed programs?
You need a C++ compiler and linker that can generate code for your windowing environment (Windows, XWindow, MacOS, ...). Windowed programs do not generally use the console to communicate with the user. They use a set of functions or classes to manipulate windows instead, which are specific to each environment. Anyway, the same principles apply both for console and windowed programs, except for communicating with the user.
What is Visual C++? And what does "visual programming" mean?
Visual C++ is the name of a C++ compiler with an integrated environment from Microsoft. It includes special tools that simplify the development of large applications as well as specific libraries that improve productivity. The use of these tools is generally known as visual programming. Other manufacturers also develop these types of tools and libraries, like Borland C++, Visual Age, etc...

分享到:
评论

相关推荐

    c++官方网站标准参考资料

    C++ Language FAQ, History of C++, A brief description ), Sourcecode( 这个太多了,不一一列出, C++ Tutorial Sources(这是本很不错的官方c++ tutorial pdf), ), Articles( Distinguish between pointers ...

    编程及C&amp;C++初学者 FAQ.pdf

    ### 编程及C/C++初学者FAQ知识点详解 #### 一、开始之前 ##### FAQ那是什么? FAQ代表“Frequently Asked Questions”,即常见问题解答。它是一种文档形式,用于汇集并解答用户常问的问题,旨在减少重复回答相同...

    Bjarne Stroustrup的FAQ:C++的风格与技巧

    Bjarne不仅设计了C++,还撰写了多本关于C++的经典著作,例如《The C++ Programming Language》等。此外,他还提供了一些关于C++的常见问题解答(FAQ)和其他文档资料。 ### 2. C++的风格与技巧 #### 2.1 为何要...

    bjarne_stroustrup_quotation.

    这份资料由三个部分组成:《A Brief Look at C++》、《A Perspective on ISO C++》以及《Bjarne Stroustrup的FAQ》。以下将详细解析这些文件中的关键知识点。 首先,我们来看《A Brief Look at C++》。这个文档可能...

    C++程序设计之四书五经

    5. **《C++ FAQ》** - **作者**: Marshall Cline - **简介**: 这本书以问答的形式解答了许多开发者在学习和使用C++过程中遇到的问题。它涵盖了从基础到高级的各种主题,是一本非常实用的参考资料。 - **特色**: ...

    Bjarne Stroustrup的FAQ

    - 同年,《C++ Programming Language》第三版出版。 - **FAQ 内容概述:** - 这份FAQ由C++创始人Bjarne Stroustrup亲自撰写,旨在回答C++开发者常见的疑问。 - 通过这份FAQ,读者可以了解到Bjarne Stroustrup对...

    c++的概要介绍与分析

    1. **《The C++ Programming Language》(作者:Bjarne Stroustrup)**:由C++的创造者本人撰写的书籍,详细介绍了C++语言的各个方面,适合想要深入学习C++的开发者阅读。 通过以上介绍,我们不难发现C++作为一种多...

    C++ 有用的资源

    C++ Programming Language Tutorials − C++ 编程语言教程。 C++ Programming − 这本书涵盖了 C++ 语言编程、软件交互设计、C++ 语言的现实生活应用。 C++ FAQ − C++ 常见问题 Free Country − Free Country 提供...

    c语言及c++初学.pdf

    1. 教材:推荐的C语言、C++语言入门书籍,如K&R的《C Programming Language》和Stroustrup的《C++ Programming Language》。 2. 习题与示例:通过实践加强理解,如LeetCode、HackerRank等在线编程平台。 3. 编译器:...

    大师专栏Bjarne Stroustrup--关于BS的一些文章和资料,有的是中文,有的是英文

    Stroustrup的贡献不仅限于语言设计,他还撰写了多本关于C++的权威书籍,包括《The C++ Programming Language》和《C++ Primer》,这些书籍成为了学习和理解C++的重要资源。 在"大师专栏Bjarne Stroustrup"中,你...

    四 川 大 学 教 案--高级语言程序设计II

    在教学过程中,学生将接触到多种参考书籍,如《面向对象程序设计.ppt》、《高质量C/C++编程》、《C++编程思想》等,以及一些知名作者的著作,如Bjarne Stroustrup的《The C++ Programming Language》和Bruce Eckel的...

    Microsoft .NET Framework FAQ

    .NET Framework 支持多种编程语言,包括 C#、VB.NET、C++/CLI、F# 等。这些语言都支持 Common Language Specification (CLS),这意味着它们可以互相操作,共享代码。 **7. .NET Framework 与 COM+ Services 之间的...

    Android高手过招 FAQ.zip

    "Android高手过招 FAQ"这个压缩包文件可能包含了一些高级开发者在实践过程中遇到的问题及其解答,旨在帮助开发者提升技能,解决棘手的问题。以下是根据标题和描述推测的一些相关知识点: 1. **Android系统架构**:...

    你必须知道的495个C语言问题.pdf

    “本书是Summit以及C FAQ在线列表的许多参与者多年心血的结晶,是C语言界最为珍贵的财富之一。我向所有C语言程序员推荐本书。” ——Francis Glassborow,著名C/C++专家,ACCU(C/C++用户协会)前主席 “本书清晰...

    sqlite-doc-3070900.zip

    2. **语言参考**:这部分详细介绍了SQLite支持的SQL语法,包括DDL(Data Definition Language)用于定义数据库结构,如CREATE TABLE,DML(Data Manipulation Language)用于操作数据,如SELECT,INSERT,UPDATE,...

    NS by examples.doc

    The simulator is written in C++ and uses OTcl (Object-Tcl) as its scripting language, which allows for easy creation and manipulation of network objects. OTcl: The User Language OTcl is a powerful ...

Global site tag (gtag.js) - Google Analytics