c++ lan. faq

3
8/7/2019 c++ lan. FAQ http://slidepdf.com/reader/full/c-lan-faq 1/3 C++ : Information : C++ Language FAQ Search: login: remember me  [register] C++ Information Documentation Reference Articles Sourcecode Forums Information C++ Language FAQ History of C++ A brief description C++ Language FAQ Published by Juan Soulie Last update on Sep 29, 2009 at 2:50pm UTC 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++?

Upload: ankitguptaji

Post on 08-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: c++ lan. FAQ

8/7/2019 c++ lan. FAQ

http://slidepdf.com/reader/full/c-lan-faq 1/3

C++ : Information : C++ Language FAQ 

Search:

login:

remember me

 [register ]

C++

Information

Documentation

Reference

Articles

Sourcecode

Forums

Information

C++ Language FAQ

History of C++

A brief description

C++ Language FAQPublished by Juan Soulie

Last update on Sep 29, 2009 at 2:50pm UTC

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++?

Page 2: c++ lan. FAQ

8/7/2019 c++ lan. FAQ

http://slidepdf.com/reader/full/c-lan-faq 2/3

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 andthe 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. Thelanguage 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 onprocedures 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

#include <iostream> 

using  namespace std;

template <class T>

bool ansisupported (T x) { return true; }

ANSI OK

Page 3: c++ lan. FAQ

8/7/2019 c++ lan. FAQ

http://slidepdf.com/reader/full/c-lan-faq 3/3

4

5

6

7

8

9

int main() {

 if (ansisupported(0)) cout << "ANSI OK";

 return 0;

}

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 that can link 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 applicationsas 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...

Home page | Privacy policy

© cplusplus.com, 2000-2010 - All rights reserved - v2.3Spotted an error? contact us